hotspot/src/share/vm/prims/jvm.cpp
changeset 25477 7dad9f95fd31
parent 25468 5331df506290
child 25716 fc9bd7814b10
--- a/hotspot/src/share/vm/prims/jvm.cpp	Mon Jul 07 12:08:07 2014 -0400
+++ b/hotspot/src/share/vm/prims/jvm.cpp	Tue Jul 08 08:04:06 2014 -0700
@@ -3042,7 +3042,7 @@
   if (ConvertYieldToSleep) {
     os::sleep(thread, MinSleepInterval, false);
   } else {
-    os::yield();
+    os::naked_yield();
   }
 JVM_END
 
@@ -3072,7 +3072,7 @@
     // It appears that in certain GUI contexts, it may be beneficial to do a short sleep
     // for SOLARIS
     if (ConvertSleepToYield) {
-      os::yield();
+      os::naked_yield();
     } else {
       ThreadState old_state = thread->osthread()->get_state();
       thread->osthread()->set_state(SLEEPING);