8306460: Clear JVM_ACC_QUEUED flag on methods when dumping dynamic CDS archive

Reviewed-by: coleenp, iklam
This commit is contained in:
Ashutosh Mehra 2023-05-16 22:36:44 +00:00 committed by Ioi Lam
parent 563152f32d
commit d3e5065284
4 changed files with 31 additions and 0 deletions

View file

@ -2592,6 +2592,18 @@ void InstanceKlass::remove_unshareable_info() {
init_shared_package_entry();
_dep_context_last_cleaned = 0;
_init_monitor = nullptr;
remove_unshareable_flags();
}
void InstanceKlass::remove_unshareable_flags() {
// clear all the flags/stats that shouldn't be in the archived version
assert(!is_scratch_class(), "must be");
assert(!has_been_redefined(), "must be");
#if INCLUDE_JVMTI
set_is_being_redefined(false);
#endif
set_has_resolved_methods(false);
}
void InstanceKlass::remove_java_mirror() {