src/hotspot/share/gc/g1/heapRegionRemSet.hpp
changeset 54623 1126f0607c70
parent 53244 9807daeb47c4
child 55148 0dab93cb3b0c
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/gc/g1/heapRegionRemSet.hpp	Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/share/gc/g1/heapRegionRemSet.hpp	Thu Apr 25 10:56:31 2019 -0400
@@ -194,7 +194,7 @@
   }
 
   size_t occupied() {
-    MutexLockerEx x(&_m, Mutex::_no_safepoint_check_flag);
+    MutexLocker x(&_m, Mutex::_no_safepoint_check_flag);
     return occupied_locked();
   }
   size_t occupied_locked() {
@@ -274,7 +274,7 @@
   // The actual # of bytes this hr_remset takes up.
   // Note also includes the strong code root set.
   size_t mem_size() {
-    MutexLockerEx x(&_m, Mutex::_no_safepoint_check_flag);
+    MutexLocker x(&_m, Mutex::_no_safepoint_check_flag);
     return _other_regions.mem_size()
       // This correction is necessary because the above includes the second
       // part.