In JDK-8221207 - "Redo JDK-8218446 - SuspendAtExit hangs" we fixed so a thread is always blocked when suspended.
And added this nice assert.
int JavaThread::java_suspend_self() {
assert(thread_state() == _thread_blocked, "wrong state for java_suspend_self()");
When checking if a thread is safepoint/handshake safe there no need to look at ext suspend flag anymore, since the thread is blocked.
And added this nice assert.
int JavaThread::java_suspend_self() {
assert(thread_state() == _thread_blocked, "wrong state for java_suspend_self()");
When checking if a thread is safepoint/handshake safe there no need to look at ext suspend flag anymore, since the thread is blocked.
- relates to
-
JDK-8221207 Redo JDK-8218446 - SuspendAtExit hangs
-
- Resolved
-
-
JDK-8218446 SuspendAtExit hangs
-
- Closed
-
-
JDK-8253241 Update comment on java_suspend_self_with_safepoint_check()
-
- Resolved
-
-
JDK-8252521 possible race in java_suspend_self_with_safepoint_check
-
- Resolved
-