8240529: CheckUnhandledOops breaks NULL check in Modules::define_module

Reviewed-by: coleenp, lfoltan, hseigel
This commit is contained in:
Stefan Karlsson 2020-03-04 15:50:49 +01:00
parent 593a05c93a
commit 43e0fc04b0

View file

@ -453,7 +453,7 @@ void Modules::define_module(jobject 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 (loader == NULL && !ClassLoader::has_jrt_entry()) {
if (h_loader.is_null() && !ClassLoader::has_jrt_entry()) {
ClassLoader::add_to_exploded_build_list(module_symbol, CHECK);
}
}