8226228: Make Threads_lock an always safepoint checked lock

Reviewed-by: coleenp, dcubed, dholmes
This commit is contained in:
Robbin Ehn 2019-08-09 11:04:08 +02:00
parent 98fb7b85e5
commit c6446d44b7
10 changed files with 32 additions and 20 deletions

View file

@ -522,7 +522,7 @@ void VM_Exit::wait_if_vm_exited() {
Thread::current_or_null() != _shutdown_thread) {
// _vm_exited is set at safepoint, and the Threads_lock is never released
// we will block here until the process dies
Threads_lock->lock_without_safepoint_check();
Threads_lock->lock();
ShouldNotReachHere();
}
}