< prev index next >

src/hotspot/share/classfile/classLoader.cpp

Print this page

        

*** 756,766 **** path[end - start] = '\0'; struct stat st; if (os::stat(path, &st) == 0) { // File or directory found - Thread* THREAD = Thread::current(); ClassPathEntry* new_entry = create_class_path_entry(path, &st, false, false, CHECK); // If the path specification is valid, enter it into this module's list if (new_entry != NULL) { module_cpl->add_to_list(new_entry); } --- 756,765 ----
*** 826,836 **** assert(string_ends_with(path, MODULES_IMAGE_NAME) || string_ends_with(path, JAVA_BASE_NAME), "Incorrect boot loader search path, no java runtime image or " JAVA_BASE_NAME " exploded build"); struct stat st; if (os::stat(path, &st) == 0) { // Directory found - Thread* THREAD = Thread::current(); ClassPathEntry* new_entry = create_class_path_entry(path, &st, false, false, CHECK); // Check for a jimage if (Arguments::has_jimage()) { assert(_jrt_entry == NULL, "should not setup bootstrap class search path twice"); --- 825,834 ----
*** 877,887 **** jio_snprintf(path, len, "%s%cmodules%c%s", home, file_sep, file_sep, module_name); struct stat st; if (os::stat(path, &st) == 0) { // Directory found ! ClassPathEntry* new_entry = create_class_path_entry(path, &st, false, false, CHECK); // If the path specification is valid, enter it into this module's list. // There is no need to check for duplicate modules in the exploded entry list, // since no two modules with the same name can be defined to the boot loader. // This is checked at module definition time in Modules::define_module. --- 875,889 ---- jio_snprintf(path, len, "%s%cmodules%c%s", home, file_sep, file_sep, module_name); struct stat st; if (os::stat(path, &st) == 0) { // Directory found ! ClassPathEntry* new_entry = create_class_path_entry(path, &st, false, false, THREAD); ! if (HAS_PENDING_EXCEPTION) { ! FREE_C_HEAP_ARRAY(char, path); ! return; ! } // If the path specification is valid, enter it into this module's list. // There is no need to check for duplicate modules in the exploded entry list, // since no two modules with the same name can be defined to the boot loader. // This is checked at module definition time in Modules::define_module.
< prev index next >