src/hotspot/share/classfile/classLoader.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/hotspot/share/classfile/classLoader.cpp	Tue May 22 15:03:42 2018
--- new/src/hotspot/share/classfile/classLoader.cpp	Tue May 22 15:03:42 2018

*** 709,720 **** --- 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; ! int ret = os::stat(path, &st); assert(ret == 0, "module path must exist"); ! if (os::stat(path, &st) != 0) { + tty->print_cr("os::stat error %d (%s). CDS dump aborted (path was \"%s\").", + errno, os::errno_name(errno), path); + vm_exit_during_initialization(); + } // 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