--- old/src/hotspot/os/bsd/os_bsd.cpp 2018-06-17 16:00:49.030901884 +0200 +++ new/src/hotspot/os/bsd/os_bsd.cpp 2018-06-17 16:00:48.930902133 +0200 @@ -3489,16 +3489,6 @@ return buf[0] == 'y' || buf[0] == 'Y'; } -int os::stat(const char *path, struct stat *sbuf) { - char pathbuf[MAX_PATH]; - if (strlen(path) > MAX_PATH - 1) { - errno = ENAMETOOLONG; - return -1; - } - os::native_path(strcpy(pathbuf, path)); - return ::stat(pathbuf, sbuf); -} - static inline struct timespec get_mtime(const char* filename) { struct stat st; int ret = os::stat(filename, &st);