src/hotspot/os/bsd/os_bsd.cpp
changeset 53461 08d6edeb3145
parent 53266 57d8566a2732
child 53886 e94ed0236046
--- a/src/hotspot/os/bsd/os_bsd.cpp	Wed Jan 23 14:10:31 2019 -0800
+++ b/src/hotspot/os/bsd/os_bsd.cpp	Wed Jan 23 21:17:51 2019 -0500
@@ -2565,7 +2565,7 @@
 
   // managed to send the signal and switch to SUSPEND_REQUEST, now wait for SUSPENDED
   while (true) {
-    if (sr_semaphore.timedwait(0, 2 * NANOSECS_PER_MILLISEC)) {
+    if (sr_semaphore.timedwait(2)) {
       break;
     } else {
       // timeout
@@ -2599,7 +2599,7 @@
 
   while (true) {
     if (sr_notify(osthread) == 0) {
-      if (sr_semaphore.timedwait(0, 2 * NANOSECS_PER_MILLISEC)) {
+      if (sr_semaphore.timedwait(2)) {
         if (osthread->sr.is_running()) {
           return;
         }