[jdk21u-dev] RFR: 8325187: JVMTI GetThreadState says virtual thread is JVMTI_THREAD_STATE_INTERRUPTED when it no longer is

Severin Gehwolf sgehwolf at openjdk.org
Thu Apr 24 08:51:52 UTC 2025


On Tue, 22 Apr 2025 16:34:18 GMT, Satyen Subramaniam <ssubramaniam at openjdk.org> wrote:

> Backporting JDK-8325187: JVMTI GetThreadState says virtual thread is JVMTI_THREAD_STATE_INTERRUPTED when it no longer is. Patch pivots from using the `jt->is_interrupted(true)` to update the interrupt status of the interrupted waiting thread, to a new `jt->get_and_clear_interrupted()` which correctly propagates the interrupt status. Ran GHA Sanity Checks, local Tier 1 and 2, and new `hotspot/jtreg/serviceability/jvmti/vthread/InterruptRawMonitor` tests. Patch is clean.

Why is this worth backporting? You don't state the reason other than "it's a bug". This looks risky enough to not backport **without** a very good reason.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1690#issuecomment-2826843886


More information about the jdk-updates-dev mailing list