--- old/src/hotspot/os/aix/os_aix.cpp 2018-07-03 10:04:43.933231698 -0400 +++ new/src/hotspot/os/aix/os_aix.cpp 2018-07-03 10:04:43.509192418 -0400 @@ -1208,22 +1208,6 @@ ::abort(); } -// This method is a copy of JDK's sysGetLastErrorString -// from src/solaris/hpi/src/system_md.c - -size_t os::lasterror(char *buf, size_t len) { - if (errno == 0) return 0; - - const char *s = os::strerror(errno); - size_t n = ::strlen(s); - if (n >= len) { - n = len - 1; - } - ::strncpy(buf, s, n); - buf[n] = '\0'; - return n; -} - intx os::current_thread_id() { return (intx)pthread_self(); }