[jdk17] RFR: 8271251: JavaThread::java_suspend() fails with "fatal error: Illegal threadstate encountered: 6" [v3]
Patricio Chilano Mateo
pchilanomate at openjdk.java.net
Tue Jul 27 18:36:42 UTC 2021
On Tue, 27 Jul 2021 16:48:14 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
> If you decide to add `is_a_block_safe_state()`, then add it above
> SafepointSynchronize::block() and use it to determine what safepoint
> safe states are accepted by SafepointSynchronize::block(), i.e., share
> the new function.
>
So as we discussed offline in order to minimize changes going to 17 and given that it's simple to figure out by code inspection that all callers of process_if_requested() are either in a trans or Java state and the issue with the wrong state in 8270085 is clearly fixed, I created 8271348 to add the sanity check in 18 to guard against future code changes falling in this same issue.
-------------
PR: https://git.openjdk.java.net/jdk17/pull/283
More information about the hotspot-runtime-dev
mailing list