8219574: Minimal VM build failure after JDK-8219414

Reviewed-by: jgeorge, dholmes, cjplummer
This commit is contained in:
Aleksey Shipilev 2019-02-22 17:54:13 +01:00
parent c97af8c3f7
commit 8360a7884d
2 changed files with 4 additions and 5 deletions

View file

@ -620,13 +620,14 @@ void ClassLoader::setup_module_search_path(const char* path, TRAPS) {
update_module_path_entry_list(path, THREAD);
}
#endif // INCLUDE_CDS
void ClassLoader::close_jrt_image() {
assert(ClassLoader::has_jrt_entry(), "Not applicable for exploded builds");
// Not applicable for exploded builds
if (!ClassLoader::has_jrt_entry()) return;
_jrt_entry->close_jimage();
}
#endif // INCLUDE_CDS
// Construct the array of module/path pairs as specified to --patch-module
// for the boot loader to search ahead of the jimage, if the class being
// loaded is defined to a module that has been specified to --patch-module.