--- a/src/hotspot/share/services/management.cpp Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/share/services/management.cpp Thu Apr 25 10:56:31 2019 -0400
@@ -844,7 +844,7 @@
static jint get_vm_thread_count() {
VmThreadCountClosure vmtcc;
{
- MutexLockerEx ml(Threads_lock);
+ MutexLocker ml(Threads_lock);
Threads::threads_do(&vmtcc);
}
@@ -1704,7 +1704,7 @@
ThreadTimesClosure ttc(names_ah, times_ah);
{
- MutexLockerEx ml(Threads_lock);
+ MutexLocker ml(Threads_lock);
Threads::threads_do(&ttc);
}
ttc.do_unlocked();