RFR: 8306324: StopThread results in thread being marked as interrupted, leading to unexpected InterruptedException [v5]
Serguei Spitsyn
sspitsyn at openjdk.org
Thu Jul 31 07:31:54 UTC 2025
On Wed, 30 Jul 2025 22:49:51 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> src/hotspot/share/runtime/javaThread.cpp line 2121:
>>
>>> 2119: for (;;) {
>>> 2120: if (has_async_exception_condition()) {
>>> 2121: return false;
>>
>> The comment above `JavaThread::sleep_nanos` should be updated about this case.
>> Also, back in `JVM_SleepNanos` we should probably skip throwing IE for this case (even though it will be overwritten by the async one later).
>
> Good suggestion, addressed now.
The mach5 tiers 1-6 are good with the latest pushes.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26365#discussion_r2244579652
More information about the serviceability-dev
mailing list