8230422: Convert uninterruptible os::sleep calls to os::naked_short_sleep

Reviewed-by: kbarrett, dcubed, shade
This commit is contained in:
David Holmes 2019-09-07 18:48:57 -04:00
parent f9e0cdbed9
commit 394d6ac55b
18 changed files with 90 additions and 104 deletions

View file

@ -2978,7 +2978,7 @@ JVM_ENTRY(void, JVM_Sleep(JNIEnv* env, jclass threadClass, jlong millis))
} else {
ThreadState old_state = thread->osthread()->get_state();
thread->osthread()->set_state(SLEEPING);
if (os::sleep(thread, millis, true) == OS_INTRPT) {
if (os::sleep(thread, millis) == OS_INTRPT) {
// An asynchronous exception (e.g., ThreadDeathException) could have been thrown on
// us while we were sleeping. We do not overwrite those.
if (!HAS_PENDING_EXCEPTION) {