hotspot/src/share/vm/runtime/thread.cpp
changeset 22533 76088853a2eb
parent 22190 d306a75a70d3
child 22539 a27fa687eca8
--- a/hotspot/src/share/vm/runtime/thread.cpp	Thu Jan 23 16:02:14 2014 -0500
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Fri Jan 24 09:28:47 2014 +0100
@@ -4446,9 +4446,7 @@
         ++ctr ;
         if ((ctr & 0xFFF) == 0 || !os::is_MP()) {
            if (Yields > 5) {
-             // Consider using a simple NakedSleep() instead.
-             // Then SpinAcquire could be called by non-JVM threads
-             Thread::current()->_ParkEvent->park(1) ;
+             os::naked_short_sleep(1);
            } else {
              os::NakedYield() ;
              ++Yields ;