diff -r a8dcacf95bff -r 1126f0607c70 src/hotspot/share/gc/shared/genCollectedHeap.cpp --- a/src/hotspot/share/gc/shared/genCollectedHeap.cpp Thu Apr 25 05:54:54 2019 -0700 +++ b/src/hotspot/share/gc/shared/genCollectedHeap.cpp Thu Apr 25 10:56:31 2019 -0400 @@ -233,7 +233,7 @@ // Update the _full_collections_completed counter // at the end of a stop-world full GC. unsigned int GenCollectedHeap::update_full_collections_completed() { - MonitorLockerEx ml(FullGCCount_lock, Mutex::_no_safepoint_check_flag); + MonitorLocker ml(FullGCCount_lock, Mutex::_no_safepoint_check_flag); assert(_full_collections_completed <= _total_full_collections, "Can't complete more collections than were started"); _full_collections_completed = _total_full_collections; @@ -247,7 +247,7 @@ // without synchronizing in any manner with the VM thread (which // may already have initiated a STW full collection "concurrently"). unsigned int GenCollectedHeap::update_full_collections_completed(unsigned int count) { - MonitorLockerEx ml(FullGCCount_lock, Mutex::_no_safepoint_check_flag); + MonitorLocker ml(FullGCCount_lock, Mutex::_no_safepoint_check_flag); assert((_full_collections_completed <= _total_full_collections) && (count <= _total_full_collections), "Can't complete more collections than were started");