[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
Tue Apr 22 16:40:05 UTC 2025


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.

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

Commit messages:
 - Backport 6eea5d675566adca3fca88639008c6c0221450a4

Changes: https://git.openjdk.org/jdk21u-dev/pull/1690/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1690&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8325187
  Stats: 209 lines in 7 files changed: 205 ins; 1 del; 3 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1690.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1690/head:pull/1690

PR: https://git.openjdk.org/jdk21u-dev/pull/1690


More information about the jdk-updates-dev mailing list