diff -r a8dcacf95bff -r 1126f0607c70 src/hotspot/share/c1/c1_Runtime1.cpp --- a/src/hotspot/share/c1/c1_Runtime1.cpp Thu Apr 25 05:54:54 2019 -0700 +++ b/src/hotspot/share/c1/c1_Runtime1.cpp Thu Apr 25 10:56:31 2019 -0400 @@ -1046,7 +1046,7 @@ // Now copy code back { - MutexLockerEx ml_patch (Patching_lock, Mutex::_no_safepoint_check_flag); + MutexLocker ml_patch (Patching_lock, Mutex::_no_safepoint_check_flag); // // Deoptimization may have happened while we waited for the lock. // In that case we don't bother to do any patching we just return @@ -1265,7 +1265,7 @@ // If we are patching in a non-perm oop, make sure the nmethod // is on the right list. { - MutexLockerEx ml_code (CodeCache_lock, Mutex::_no_safepoint_check_flag); + MutexLocker ml_code (CodeCache_lock, Mutex::_no_safepoint_check_flag); nmethod* nm = CodeCache::find_nmethod(caller_frame.pc()); guarantee(nm != NULL, "only nmethods can contain non-perm oops");