--- 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.