src/hotspot/share/runtime/thread.cpp
changeset 52386 e256b3b62e20
parent 52341 2b58b8e1d28f
child 52431 b0af758a092c
--- a/src/hotspot/share/runtime/thread.cpp	Fri Nov 02 08:33:59 2018 +0100
+++ b/src/hotspot/share/runtime/thread.cpp	Fri Nov 02 14:13:05 2018 +0100
@@ -4286,7 +4286,7 @@
     // queue until after the vm thread is dead. After this point,
     // we'll never emerge out of the safepoint before the VM exits.
 
-    MutexLocker ml(Heap_lock);
+    MutexLockerEx ml(Heap_lock, Mutex::_no_safepoint_check_flag);
 
     VMThread::wait_for_vm_thread_exit();
     assert(SafepointSynchronize::is_at_safepoint(), "VM thread should exit at Safepoint");