diff src/share/vm/runtime/os.hpp @ 17810:62c54fcc0a35

Merge
author kvn
date Tue, 25 Mar 2014 17:07:36 -0700
parents 2b8e28fdf503 0e6af9b390af
children 917873d2983d 364b73402247
line wrap: on
line diff
--- a/src/share/vm/runtime/os.hpp	Tue Mar 25 12:54:21 2014 -0700
+++ b/src/share/vm/runtime/os.hpp	Tue Mar 25 17:07:36 2014 -0700
@@ -434,7 +434,10 @@
   static intx current_thread_id();
   static int current_process_id();
   static int sleep(Thread* thread, jlong ms, bool interruptable);
-  static int naked_sleep();
+  // Short standalone OS sleep suitable for slow path spin loop.
+  // Ignores Thread.interrupt() (so keep it short).
+  // ms = 0, will sleep for the least amount of time allowed by the OS.
+  static void naked_short_sleep(jlong ms);
   static void infinite_sleep(); // never returns, use with CAUTION
   static void yield();        // Yields to all threads with same priority
   enum YieldResult {