8263632: Improve exception handling of APIs in classLoader.cpp

Reviewed-by: iklam, dholmes, coleenp
This commit is contained in:
Calvin Cheung 2021-03-26 21:29:53 +00:00
parent 59ed1fa28c
commit c9d2d024a3
8 changed files with 99 additions and 125 deletions

View file

@ -451,7 +451,7 @@ void Modules::define_module(Handle module, jboolean is_open, jstring version,
// If the module is defined to the boot loader and an exploded build is being
// used, prepend <java.home>/modules/modules_name to the system boot class path.
if (h_loader.is_null() && !ClassLoader::has_jrt_entry()) {
ClassLoader::add_to_exploded_build_list(module_symbol, CHECK);
ClassLoader::add_to_exploded_build_list(THREAD, module_symbol);
}
#ifdef COMPILER2