hotspot/src/os/aix/vm/os_aix.cpp
changeset 25477 7dad9f95fd31
parent 25468 5331df506290
child 25716 fc9bd7814b10
child 25711 7acf7d6a4403
--- a/hotspot/src/os/aix/vm/os_aix.cpp	Mon Jul 07 12:08:07 2014 -0400
+++ b/hotspot/src/os/aix/vm/os_aix.cpp	Tue Jul 08 08:04:06 2014 -0700
@@ -2808,12 +2808,10 @@
   return DontYieldALot;
 }
 
-void os::yield() {
+void os::naked_yield() {
   sched_yield();
 }
 
-os::YieldResult os::NakedYield() { sched_yield(); return os::YIELD_UNKNOWN; }
-
 ////////////////////////////////////////////////////////////////////////////////
 // thread priority support
 
@@ -3070,7 +3068,7 @@
 
   for (int n = 0; !osthread->sr.is_suspended(); n++) {
     for (int i = 0; i < RANDOMLY_LARGE_INTEGER2 && !osthread->sr.is_suspended(); i++) {
-      os::yield();
+      os::naked_yield();
     }
 
     // timeout, try to cancel the request
@@ -3104,7 +3102,7 @@
     if (sr_notify(osthread) == 0) {
       for (int n = 0; n < RANDOMLY_LARGE_INTEGER && !osthread->sr.is_running(); n++) {
         for (int i = 0; i < 100 && !osthread->sr.is_running(); i++) {
-          os::yield();
+          os::naked_yield();
         }
       }
     } else {