--- a/src/hotspot/share/gc/g1/g1ConcurrentRefineThread.cpp Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/share/gc/g1/g1ConcurrentRefineThread.cpp Thu Apr 25 10:56:31 2019 -0400
@@ -59,9 +59,9 @@
}
void G1ConcurrentRefineThread::wait_for_completed_buffers() {
- MutexLockerEx x(_monitor, Mutex::_no_safepoint_check_flag);
+ MutexLocker x(_monitor, Mutex::_no_safepoint_check_flag);
while (!should_terminate() && !is_active()) {
- _monitor->wait(Mutex::_no_safepoint_check_flag);
+ _monitor->wait_without_safepoint_check();
}
}
@@ -71,7 +71,7 @@
}
void G1ConcurrentRefineThread::activate() {
- MutexLockerEx x(_monitor, Mutex::_no_safepoint_check_flag);
+ MutexLocker x(_monitor, Mutex::_no_safepoint_check_flag);
if (!is_primary()) {
set_active(true);
} else {
@@ -82,7 +82,7 @@
}
void G1ConcurrentRefineThread::deactivate() {
- MutexLockerEx x(_monitor, Mutex::_no_safepoint_check_flag);
+ MutexLocker x(_monitor, Mutex::_no_safepoint_check_flag);
if (!is_primary()) {
set_active(false);
} else {
@@ -140,6 +140,6 @@
}
void G1ConcurrentRefineThread::stop_service() {
- MutexLockerEx x(_monitor, Mutex::_no_safepoint_check_flag);
+ MutexLocker x(_monitor, Mutex::_no_safepoint_check_flag);
_monitor->notify();
}