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

@ -1804,7 +1804,7 @@ void JavaThread::block_if_vm_exited() {
if (_terminated == _vm_exited) {
// _vm_exited is set at safepoint, and Threads_lock is never released
// we will block here forever
Threads_lock->lock_without_safepoint_check();
Threads_lock->lock();
ShouldNotReachHere();
}
}