--- old/src/hotspot/share/classfile/classLoader.cpp 2018-04-25 23:39:38.621187251 -0400 +++ new/src/hotspot/share/classfile/classLoader.cpp 2018-04-25 23:39:36.797081788 -0400 @@ -636,25 +636,6 @@ } } -#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) {