mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8306460: Clear JVM_ACC_QUEUED flag on methods when dumping dynamic CDS archive
Reviewed-by: coleenp, iklam
This commit is contained in:
parent
563152f32d
commit
d3e5065284
4 changed files with 31 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue