--- a/src/hotspot/os/linux/os_linux.cpp Thu Apr 25 05:54:54 2019 -0700
+++ b/src/hotspot/os/linux/os_linux.cpp Thu Apr 25 10:56:31 2019 -0400
@@ -773,7 +773,7 @@
// handshaking with parent thread
{
- MutexLockerEx ml(sync, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(sync, Mutex::_no_safepoint_check_flag);
// notify parent thread
osthread->set_state(INITIALIZED);
@@ -781,7 +781,7 @@
// wait until os::start_thread()
while (osthread->get_state() == INITIALIZED) {
- sync->wait(Mutex::_no_safepoint_check_flag);
+ sync->wait_without_safepoint_check();
}
}
@@ -881,9 +881,9 @@
// Wait until child thread is either initialized or aborted
{
Monitor* sync_with_child = osthread->startThread_lock();
- MutexLockerEx ml(sync_with_child, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(sync_with_child, Mutex::_no_safepoint_check_flag);
while ((state = osthread->get_state()) == ALLOCATED) {
- sync_with_child->wait(Mutex::_no_safepoint_check_flag);
+ sync_with_child->wait_without_safepoint_check();
}
}
}
@@ -975,7 +975,7 @@
OSThread * osthread = thread->osthread();
assert(osthread->get_state() != INITIALIZED, "just checking");
Monitor* sync_with_child = osthread->startThread_lock();
- MutexLockerEx ml(sync_with_child, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(sync_with_child, Mutex::_no_safepoint_check_flag);
sync_with_child->notify();
}