--- old/src/hotspot/os/aix/os_aix.cpp 2018-06-17 16:00:48.490903233 +0200 +++ new/src/hotspot/os/aix/os_aix.cpp 2018-06-17 16:00:48.386903492 +0200 @@ -3737,16 +3737,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); -} - // Is a (classpath) directory empty? bool os::dir_is_empty(const char* path) { DIR *dir = NULL;