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

Satyen Subramaniam ssubramaniam at openjdk.org
Thu Apr 24 19:35:55 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.

Fair point, let's hold off on this one

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

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


More information about the jdk-updates-dev mailing list