--- old/src/hotspot/os/bsd/os_bsd.cpp 2018-07-03 10:04:44.526286635 -0400 +++ new/src/hotspot/os/bsd/os_bsd.cpp 2018-07-03 10:04:44.106247725 -0400 @@ -1081,22 +1081,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; -} - // Information of current thread in variety of formats pid_t os::Bsd::gettid() { int retval = -1;