src/hotspot/share/services/diagnosticFramework.cpp
changeset 58503 726a3945e934
parent 54623 1126f0607c70
--- a/src/hotspot/share/services/diagnosticFramework.cpp	Tue Oct 08 15:03:20 2019 +0100
+++ b/src/hotspot/share/services/diagnosticFramework.cpp	Tue Oct 08 09:13:08 2019 -0700
@@ -437,9 +437,9 @@
 }
 
 void DCmdFactory::push_jmx_notification_request() {
-  MutexLocker ml(Service_lock, Mutex::_no_safepoint_check_flag);
+  MutexLocker ml(Notification_lock, Mutex::_no_safepoint_check_flag);
   _has_pending_jmx_notification = true;
-  Service_lock->notify_all();
+  Notification_lock->notify_all();
 }
 
 void DCmdFactory::send_notification(TRAPS) {
@@ -455,7 +455,7 @@
   HandleMark hm(THREAD);
   bool notif = false;
   {
-    MutexLocker ml(Service_lock, Mutex::_no_safepoint_check_flag);
+    MutexLocker ml(Notification_lock, Mutex::_no_safepoint_check_flag);
     notif = _has_pending_jmx_notification;
     _has_pending_jmx_notification = false;
   }