RFR: 8306324: StopThread results in thread being marked as interrupted, leading to unexpected InterruptedException [v7]
Serguei Spitsyn
sspitsyn at openjdk.org
Sat Aug 2 04:21:54 UTC 2025
On Fri, 1 Aug 2025 14:06:41 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:
>> Should we always have `HAS_PENDING_EXCEPTION == true` if async exception was installed?
>> If so, then this newly added check is not really needed:
>>
>> if (!thread->has_async_exception_condition()) {
>
> Until we process the async exception handshake operation, `HAS_PENDING_EXCEPTION` will be false. The only way for `HAS_PENDING_EXCEPTION` to be true would be if we already entered the method with a pending exception, but I don’t see how that is possible.
Okay, thanks!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26365#discussion_r2249114695
More information about the serviceability-dev
mailing list