--- a/src/hotspot/os/bsd/os_bsd.cpp Thu Dec 20 02:51:01 2018 +0100
+++ b/src/hotspot/os/bsd/os_bsd.cpp Thu Dec 20 10:05:19 2018 +0100
@@ -2225,22 +2225,6 @@
RESTARTABLE_RETURN_INT(::pread(fd, buf, nBytes, offset));
}
-void os::naked_short_sleep(jlong ms) {
- struct timespec req;
-
- assert(ms < 1000, "Un-interruptable sleep, short time use only");
- req.tv_sec = 0;
- if (ms > 0) {
- req.tv_nsec = (ms % 1000) * 1000000;
- } else {
- req.tv_nsec = 1;
- }
-
- nanosleep(&req, NULL);
-
- return;
-}
-
// Sleep forever; naked call to OS-specific sleep; use with CAUTION
void os::infinite_sleep() {
while (true) { // sleep forever ...