diff -r a8dcacf95bff -r 1126f0607c70 src/hotspot/share/runtime/handshake.cpp --- a/src/hotspot/share/runtime/handshake.cpp Thu Apr 25 05:54:54 2019 -0700 +++ b/src/hotspot/share/runtime/handshake.cpp Thu Apr 25 10:56:31 2019 -0400 @@ -137,7 +137,7 @@ // There is an assumption in the code that the Threads_lock should be // locked during certain phases. { - MutexLockerEx ml(Threads_lock, Mutex::_no_safepoint_check_flag); + MutexLocker ml(Threads_lock, Mutex::_no_safepoint_check_flag); _target->handshake_process_by_vmthread(); } } while (!poll_for_completed_thread()); @@ -186,7 +186,7 @@ // There is an assumption in the code that the Threads_lock should // be locked during certain phases. jtiwh.rewind(); - MutexLockerEx ml(Threads_lock, Mutex::_no_safepoint_check_flag); + MutexLocker ml(Threads_lock, Mutex::_no_safepoint_check_flag); for (JavaThread *thr = jtiwh.next(); thr != NULL; thr = jtiwh.next()) { // A new thread on the ThreadsList will not have an operation, // hence it is skipped in handshake_process_by_vmthread.