--- old/src/hotspot/share/runtime/objectMonitor.cpp 2019-09-13 03:22:41.038090624 -0400 +++ new/src/hotspot/share/runtime/objectMonitor.cpp 2019-09-13 03:22:39.901078949 -0400 @@ -1205,7 +1205,7 @@ EventJavaMonitorWait event; // check for a pending interrupt - if (interruptible && Thread::is_interrupted(Self, true) && !HAS_PENDING_EXCEPTION) { + if (interruptible && jt->is_interrupted(true) && !HAS_PENDING_EXCEPTION) { // post monitor waited event. Note that this is past-tense, we are done waiting. if (JvmtiExport::should_post_monitor_waited()) { // Note: 'false' parameter is passed here because the @@ -1275,7 +1275,7 @@ // Thread is in thread_blocked state and oop access is unsafe. jt->set_suspend_equivalent(); - if (interruptible && (Thread::is_interrupted(THREAD, false) || HAS_PENDING_EXCEPTION)) { + if (interruptible && (jt->is_interrupted(false) || HAS_PENDING_EXCEPTION)) { // Intentionally empty } else if (node._notified == 0) { if (millis <= 0) { @@ -1401,7 +1401,7 @@ if (!WasNotified) { // no, it could be timeout or Thread.interrupt() or both // check for interrupt event, otherwise it is timeout - if (interruptible && Thread::is_interrupted(Self, true) && !HAS_PENDING_EXCEPTION) { + if (interruptible && jt->is_interrupted(true) && !HAS_PENDING_EXCEPTION) { THROW(vmSymbols::java_lang_InterruptedException()); } }