RFR: 8306324: StopThread results in thread being marked as interrupted, leading to unexpected InterruptedException [v5]

Serguei Spitsyn sspitsyn at openjdk.org
Wed Jul 30 22:52:56 UTC 2025


On Wed, 30 Jul 2025 15:22:12 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

>> Serguei Spitsyn has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   review: restored the tweak in the JavaThread::sleep_nanos
>
> 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, will address it.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26365#discussion_r2244007729


More information about the serviceability-dev mailing list