diff -r a8dcacf95bff -r 1126f0607c70 src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp --- a/src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp Thu Apr 25 05:54:54 2019 -0700 +++ b/src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp Thu Apr 25 10:56:31 2019 -0400 @@ -203,7 +203,7 @@ // there isn't any safe way to iterate over regular CodeBlobs since // they can be freed at any point. { - MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); + MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); collector.collect(); } @@ -225,7 +225,7 @@ // may be changing while this is happening which is ok since newly // created nmethod will notify normally and nmethods which are freed // can be safely skipped. - MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); + MutexLocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); // Iterate over non-profiled and profiled nmethods NMethodIterator iter(NMethodIterator::only_alive_and_not_unloading); while(iter.next()) { @@ -234,7 +234,7 @@ nmethodLocker nml(current); // Don't hold the lock over the notify or jmethodID creation - MutexUnlockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); + MutexUnlocker mu(CodeCache_lock, Mutex::_no_safepoint_check_flag); current->get_and_cache_jmethod_id(); JvmtiExport::post_compiled_method_load(env, current); }