< prev index next >

src/hotspot/share/services/gcNotifier.cpp

Print this page

        

*** 52,73 **** GCNotificationRequest *request = new GCNotificationRequest(os::javaTimeMillis(),mgr,action,cause,stat); addRequest(request); } void GCNotifier::addRequest(GCNotificationRequest *request) { ! MutexLocker ml(Service_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(); } GCNotificationRequest *GCNotifier::getRequest() { ! MutexLocker ml(Service_lock, Mutex::_no_safepoint_check_flag); GCNotificationRequest *request = first_request; if(first_request != NULL) { first_request = first_request->next; } return request; --- 52,73 ---- GCNotificationRequest *request = new GCNotificationRequest(os::javaTimeMillis(),mgr,action,cause,stat); addRequest(request); } void GCNotifier::addRequest(GCNotificationRequest *request) { ! MutexLocker ml(Notification_lock, Mutex::_no_safepoint_check_flag); if(first_request == NULL) { first_request = request; } else { last_request->next = request; } last_request = request; ! Notification_lock->notify_all(); } GCNotificationRequest *GCNotifier::getRequest() { ! MutexLocker ml(Notification_lock, Mutex::_no_safepoint_check_flag); GCNotificationRequest *request = first_request; if(first_request != NULL) { first_request = first_request->next; } return request;
< prev index next >