--- a/src/hotspot/os/aix/os_aix.cpp Tue Jul 03 13:41:18 2018 -0400
+++ b/src/hotspot/os/aix/os_aix.cpp Tue Jul 03 15:08:01 2018 -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();
}