8267556: Enhance class paths check during runtime

Reviewed-by: minqi, iklam
This commit is contained in:
Calvin Cheung 2021-06-10 19:50:44 +00:00
parent 8c8422e0f8
commit 4fd2a14997
7 changed files with 100 additions and 6 deletions

View file

@ -736,6 +736,9 @@ ClassPathEntry* ClassLoader::create_class_path_entry(JavaThread* current,
if (zip != NULL && error_msg == NULL) {
new_entry = new ClassPathZipEntry(zip, path, is_boot_append, from_class_path_attr);
} else {
#if INCLUDE_CDS
ClassLoaderExt::set_has_non_jar_in_classpath();
#endif
return NULL;
}
log_info(class, path)("opened: %s", path);