mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8267189: Remove duplicated unregistered classes from dynamic archive
Reviewed-by: ccheung, minqi
This commit is contained in:
parent
fa3b44d438
commit
bb24fa652a
8 changed files with 316 additions and 19 deletions
|
@ -683,7 +683,7 @@ void InstanceKlass::deallocate_contents(ClassLoaderData* loader_data) {
|
|||
set_annotations(NULL);
|
||||
|
||||
if (Arguments::is_dumping_archive()) {
|
||||
SystemDictionaryShared::remove_dumptime_info(this);
|
||||
SystemDictionaryShared::handle_class_unloading(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2613,7 +2613,7 @@ void InstanceKlass::unload_class(InstanceKlass* ik) {
|
|||
ClassLoadingService::notify_class_unloaded(ik);
|
||||
|
||||
if (Arguments::is_dumping_archive()) {
|
||||
SystemDictionaryShared::remove_dumptime_info(ik);
|
||||
SystemDictionaryShared::handle_class_unloading(ik);
|
||||
}
|
||||
|
||||
if (log_is_enabled(Info, class, unload)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue