8316132: CDSProtectionDomain::get_shared_protection_domain should check for exception

Reviewed-by: dholmes, iklam
This commit is contained in:
Calvin Cheung 2023-10-31 20:56:18 +00:00
parent 2182c93689
commit 11394828b3

View File

@ -241,7 +241,7 @@ Handle CDSProtectionDomain::get_shared_protection_domain(Handle class_loader,
TRAPS) {
Handle protection_domain;
if (shared_protection_domain(shared_path_index) == nullptr) {
Handle pd = get_protection_domain_from_classloader(class_loader, url, THREAD);
Handle pd = get_protection_domain_from_classloader(class_loader, url, CHECK_NH);
atomic_set_shared_protection_domain(shared_path_index, pd());
}