8338693: assert(Atomic::add(&ik->_shared_class_load_count, 1) == 1) failed: shared class loaded more than once

Reviewed-by: iklam, dholmes
This commit is contained in:
Matias Saavedra Silva 2024-09-19 14:18:03 +00:00
parent d555f072b2
commit 3bb8de3145

View File

@ -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;
}