--- a/src/hotspot/share/runtime/handshake.cpp Fri Aug 09 10:06:44 2019 +0200
+++ b/src/hotspot/share/runtime/handshake.cpp Fri Aug 09 11:04:08 2019 +0200
@@ -137,7 +137,7 @@
// There is an assumption in the code that the Threads_lock should be
// locked during certain phases.
{
- MutexLocker ml(Threads_lock, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(Threads_lock);
_target->handshake_process_by_vmthread();
}
} while (!poll_for_completed_thread());
@@ -186,7 +186,7 @@
// There is an assumption in the code that the Threads_lock should
// be locked during certain phases.
jtiwh.rewind();
- MutexLocker ml(Threads_lock, Mutex::_no_safepoint_check_flag);
+ MutexLocker ml(Threads_lock);
for (JavaThread *thr = jtiwh.next(); thr != NULL; thr = jtiwh.next()) {
// A new thread on the ThreadsList will not have an operation,
// hence it is skipped in handshake_process_by_vmthread.