equal
deleted
inserted
replaced
462 static void free_thread(OSThread* osthread); |
462 static void free_thread(OSThread* osthread); |
463 |
463 |
464 // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit |
464 // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit |
465 static intx current_thread_id(); |
465 static intx current_thread_id(); |
466 static int current_process_id(); |
466 static int current_process_id(); |
467 // Implementation of java.lang.Thread.sleep for JavaThreads |
467 |
468 static int sleep(JavaThread* thread, jlong ms); |
|
469 // Short standalone OS sleep routines suitable for slow path spin loop. |
468 // Short standalone OS sleep routines suitable for slow path spin loop. |
470 // Ignores safepoints/suspension/Thread.interrupt() (so keep it short). |
469 // Ignores safepoints/suspension/Thread.interrupt() (so keep it short). |
471 // ms/ns = 0, will sleep for the least amount of time allowed by the OS. |
470 // ms/ns = 0, will sleep for the least amount of time allowed by the OS. |
472 // Maximum sleep time is just under 1 second. |
471 // Maximum sleep time is just under 1 second. |
473 static void naked_short_sleep(jlong ms); |
472 static void naked_short_sleep(jlong ms); |