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

Alan Bateman alanb at openjdk.org
Wed Jul 30 08:46:56 UTC 2025


On Tue, 29 Jul 2025 23:45:09 GMT, David Holmes <dholmes at openjdk.org> wrote:

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

Right, and mostly surfaced when updating JVMTI to support virtual threads.

The related issue is that JVMTI InterruptThread doesn't cause a platform thread to wakeup from interruptible I/O operations. It works when the target is a virtual thread because it's an upcall to Thread::interrupt, not so for platform threads.

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

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


More information about the serviceability-dev mailing list