8230424: Use platform independent code for Thread.interrupt support

8231094: os::sleep in assert message should be changed to JavaThread::sleep

Reviewed-by: rehn, dcubed
This commit is contained in:
David Holmes 2019-09-17 19:09:37 -04:00
parent f94f7f2212
commit 5bca86f9f4
15 changed files with 129 additions and 155 deletions

View file

@ -631,7 +631,7 @@ JRT_ENTRY(jboolean, JVMCIRuntime::thread_is_interrupted(JavaThread* thread, oopD
// The other thread may exit during this process, which is ok so return false.
return JNI_FALSE;
} else {
return (jint) Thread::is_interrupted(receiverThread, clear_interrupted != 0);
return (jint) receiverThread->is_interrupted(clear_interrupted != 0);
}
JRT_END