Skip to content

Commit

Permalink
8338693: assert(Atomic::add(&ik->_shared_class_load_count, 1) == 1) f…
Browse files Browse the repository at this point in the history
…ailed: shared class loaded more than once

Reviewed-by: iklam, dholmes
  • Loading branch information
Matias Saavedra Silva committed Sep 19, 2024
1 parent d555f07 commit 3bb8de3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hotspot/share/classfile/systemDictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,10 +1149,12 @@ InstanceKlass* SystemDictionary::load_shared_class(InstanceKlass* ik,
Symbol* class_name = ik->name();

if (!is_shared_class_visible(class_name, ik, pkg_entry, class_loader)) {
ik->set_shared_loading_failed();
return nullptr;
}

if (!check_shared_class_super_types(ik, class_loader, protection_domain, THREAD)) {
ik->set_shared_loading_failed();
return nullptr;
}

Expand Down

0 comments on commit 3bb8de3

Please sign in to comment.