mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8229778: TestJstatdDefaults.java failed due to "fatal error: LEAF method calling lock?"
Reviewed-by: dholmes, dcubed
This commit is contained in:
parent
35bfbfd600
commit
bb56c020f4
1 changed files with 4 additions and 1 deletions
|
@ -1803,7 +1803,10 @@ bool JavaThread::reguard_stack(void) {
|
||||||
void JavaThread::block_if_vm_exited() {
|
void JavaThread::block_if_vm_exited() {
|
||||||
if (_terminated == _vm_exited) {
|
if (_terminated == _vm_exited) {
|
||||||
// _vm_exited is set at safepoint, and Threads_lock is never released
|
// _vm_exited is set at safepoint, and Threads_lock is never released
|
||||||
// we will block here forever
|
// we will block here forever.
|
||||||
|
// Here we can be doing a jump from a safe state to an unsafe state without
|
||||||
|
// proper transition, but it happens after the final safepoint has begun.
|
||||||
|
set_thread_state(_thread_in_vm);
|
||||||
Threads_lock->lock();
|
Threads_lock->lock();
|
||||||
ShouldNotReachHere();
|
ShouldNotReachHere();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue