--- a/src/hotspot/share/prims/jvmtiEnv.cpp Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/share/prims/jvmtiEnv.cpp Thu Apr 25 10:56:31 2019 -0400
@@ -943,7 +943,7 @@
}
{
- MutexLockerEx ml(java_thread->SR_lock(), Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(java_thread->SR_lock(), Mutex::_no_safepoint_check_flag);
if (java_thread->is_external_suspend()) {
// don't allow nested external suspend requests.
return (JVMTI_ERROR_THREAD_SUSPENDED);
@@ -983,7 +983,7 @@
}
{
- MutexLockerEx ml(java_thread->SR_lock(), Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(java_thread->SR_lock(), Mutex::_no_safepoint_check_flag);
if (java_thread->is_external_suspend()) {
// don't allow nested external suspend requests.
results[i] = JVMTI_ERROR_THREAD_SUSPENDED;