mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8226228: Make Threads_lock an always safepoint checked lock
Reviewed-by: coleenp, dcubed, dholmes
This commit is contained in:
parent
98fb7b85e5
commit
c6446d44b7
10 changed files with 32 additions and 20 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue