hotspot/src/os/solaris/vm/os_solaris.cpp
changeset 25477 7dad9f95fd31
parent 25472 381638db28e6
child 25716 fc9bd7814b10
child 25503 9f471b837330
--- a/hotspot/src/os/solaris/vm/os_solaris.cpp	Mon Jul 07 12:08:07 2014 -0400
+++ b/hotspot/src/os/solaris/vm/os_solaris.cpp	Tue Jul 08 08:04:06 2014 -0700
@@ -3173,20 +3173,14 @@
   }
 }
 
-// Caveat: Solaris os::yield() causes a thread-state transition whereas
-// the linux and win32 implementations do not.  This should be checked.
-
-void os::yield() {
-  // Yields to all threads with same or greater priority
-  os::sleep(Thread::current(), 0, false);
-}
-
 // Note that yield semantics are defined by the scheduling class to which
 // the thread currently belongs.  Typically, yield will _not yield to
 // other equal or higher priority threads that reside on the dispatch queues
 // of other CPUs.
 
-os::YieldResult os::NakedYield() { thr_yield(); return os::YIELD_UNKNOWN; }
+void os::naked_yield() {
+  thr_yield();
+}
 
 // Interface for setting lwp priorities.  If we are using T2 libthread,
 // which forces the use of BoundThreads or we manually set UseBoundThreads,