On Tue, 29 Jul 2025 15:23:29 GMT, Alan Bateman <al...@openjdk.org> wrote:

> I don't think the current proposed change (which drop's setting the interrupt 
> flag in install_async_exception) will cause a target thread blocked in sleep 
> to wakeup. A target thread blocked in JavaThread::sleep_nanos will wakeup 
> from park_nanos but will just park again with the remaining time. I assume 
> this is the test failures that Serguei mentions.

Right but that is why there was a tweak to `sleep_nanos`:

if (has_async_exception_condition()) {
      return false;
}

But that tweak has now been removed hence this fix no longer maintains the 
functionality of `StopThread`.

And again this issue of leaving the interrupt flag set has existed "forever".

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

PR Comment: https://git.openjdk.org/jdk/pull/26365#issuecomment-3134402208

Reply via email to