src/hotspot/share/classfile/classLoader.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff src/hotspot/share/classfile/classLoader.cpp

src/hotspot/share/classfile/classLoader.cpp

Print this page

        

*** 709,720 **** // Add a module path to the _module_path_entries list. void ClassLoader::update_module_path_entry_list(const char *path, TRAPS) { assert(DumpSharedSpaces, "dump time only"); struct stat st; ! int ret = os::stat(path, &st); ! assert(ret == 0, "module path must exist"); // File or directory found ClassPathEntry* new_entry = NULL; new_entry = create_class_path_entry(path, &st, true /* throw_exception */, false /*is_boot_append */, CHECK); if (new_entry == NULL) { --- 709,723 ---- // Add a module path to the _module_path_entries list. void ClassLoader::update_module_path_entry_list(const char *path, TRAPS) { assert(DumpSharedSpaces, "dump time only"); struct stat st; ! if (os::stat(path, &st) != 0) { ! tty->print_cr("os::stat error %d (%s). CDS dump aborted. Bad path %s", ! errno, os::errno_name(errno), path); ! exit(1); ! } // File or directory found ClassPathEntry* new_entry = NULL; new_entry = create_class_path_entry(path, &st, true /* throw_exception */, false /*is_boot_append */, CHECK); if (new_entry == NULL) {
src/hotspot/share/classfile/classLoader.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File