< prev index next >

src/hotspot/share/classfile/classLoader.cpp

Print this page

        

*** 634,662 **** } ls.cr(); } } - #if INCLUDE_CDS - void ClassLoader::check_shared_classpath(const char *path) { - if (strcmp(path, "") == 0) { - exit_with_path_failure("Cannot have empty path in archived classpaths", NULL); - } - - struct stat st; - if (os::stat(path, &st) == 0) { - if ((st.st_mode & S_IFMT) != S_IFREG) { // is not a regular file - if (!os::dir_is_empty(path)) { - tty->print_cr("Error: non-empty directory '%s'", path); - exit_with_path_failure("CDS allows only empty directories in archived classpaths", - NULL); - } - } - } - } - #endif - void ClassLoader::setup_bootstrap_search_path() { const char* sys_class_path = Arguments::get_sysclasspath(); if (PrintSharedArchiveAndExit) { // Don't print sys_class_path - this is the bootcp of this current VM process, not necessarily // the same as the bootcp of the shared archive. --- 634,643 ----
< prev index next >