--- old/src/share/vm/classfile/sharedPathsMiscInfo.hpp 2015-10-29 21:53:04.337545524 -0700 +++ new/src/share/vm/classfile/sharedPathsMiscInfo.hpp 2015-10-29 21:53:04.225541294 -0700 @@ -25,6 +25,7 @@ #ifndef SHARE_VM_CLASSFILE_SHAREDPATHSMISCINFO_HPP #define SHARE_VM_CLASSFILE_SHAREDPATHSMISCINFO_HPP +#include "classfile/classLoader.hpp" #include "runtime/os.hpp" // During dumping time, when processing class paths, we build up the dump-time @@ -106,19 +107,6 @@ add_path(path, NON_EXIST); } - // The path must exist and have required size and modification time - void add_required_file(const char* path) { - add_path(path, REQUIRED); - - struct stat st; - if (os::stat(path, &st) != 0) { - assert(0, "sanity"); - ClassLoader::exit_with_path_failure("failed to os::stat(%s)", path); // should not happen - } - write_time(st.st_mtime); - write_long(st.st_size); - } - // The path must exist, and must contain exactly files/dirs void add_boot_classpath(const char* path) { add_path(path, BOOT);