We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35bfbfd commit bb56c02Copy full SHA for bb56c02
src/hotspot/share/runtime/thread.cpp
@@ -1803,7 +1803,10 @@ bool JavaThread::reguard_stack(void) {
1803
void JavaThread::block_if_vm_exited() {
1804
if (_terminated == _vm_exited) {
1805
// _vm_exited is set at safepoint, and Threads_lock is never released
1806
- // we will block here forever
+ // we will block here forever.
1807
+ // Here we can be doing a jump from a safe state to an unsafe state without
1808
+ // proper transition, but it happens after the final safepoint has begun.
1809
+ set_thread_state(_thread_in_vm);
1810
Threads_lock->lock();
1811
ShouldNotReachHere();
1812
}
0 commit comments