mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8213236: A partial removed/deleted JavaThread cannot transition
Reviewed-by: dholmes, dcubed, eosterlund
This commit is contained in:
parent
25f14cd757
commit
6e5e462e2a
2 changed files with 4 additions and 2 deletions
|
@ -4286,7 +4286,7 @@ bool Threads::destroy_vm() {
|
|||
// 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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue