src/hotspot/share/services/gcNotifier.cpp
changeset 58503 726a3945e934
parent 55734 51f5b4c29626
child 58679 9c3209ff7550
--- a/src/hotspot/share/services/gcNotifier.cpp	Tue Oct 08 15:03:20 2019 +0100
+++ b/src/hotspot/share/services/gcNotifier.cpp	Tue Oct 08 09:13:08 2019 -0700
@@ -54,18 +54,18 @@
  }
 
 void GCNotifier::addRequest(GCNotificationRequest *request) {
-  MutexLocker ml(Service_lock, Mutex::_no_safepoint_check_flag);
+  MutexLocker ml(Notification_lock, Mutex::_no_safepoint_check_flag);
   if(first_request == NULL) {
     first_request = request;
   } else {
     last_request->next = request;
   }
   last_request = request;
-  Service_lock->notify_all();
+  Notification_lock->notify_all();
 }
 
 GCNotificationRequest *GCNotifier::getRequest() {
-  MutexLocker ml(Service_lock, Mutex::_no_safepoint_check_flag);
+  MutexLocker ml(Notification_lock, Mutex::_no_safepoint_check_flag);
   GCNotificationRequest *request = first_request;
   if(first_request != NULL) {
     first_request = first_request->next;