> When a virtual thread is mounted, the carrier thread should be reported as 
> "waiting" until the virtual thread unmounts. Right now, GetThreadState 
> reports a state based the JavaThread status when it should return 
> JVMTI_THREAD_STATE_WAITING | JVMTI_THREAD_STATE_WAITING_INDEFINITELY.
> The fix adds:
>  - a special case for passive carrier threads
>  - necessary test coverage to the existing JVMTI test: 
> `serviceability/jvmti/vthread/ThreadStateTest`.
> 
> Testing:
>    - tested with the updated test: 
> `serviceability/jvmti/vthread/ThreadStateTest`
>    - submitted mach5 tiers 1-5
>    - TBD: to submit mach5 tier 6

Serguei Spitsyn has updated the pull request incrementally with one additional 
commit since the last revision:

  review: removed JVMTI_THREAD_STATE_RUNNABLE from a carrier thread state

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14298/files
  - new: https://git.openjdk.org/jdk/pull/14298/files/e60da02e..b5eb3835

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14298&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14298&range=01-02

  Stats: 4 lines in 2 files changed: 2 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/14298.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14298/head:pull/14298

PR: https://git.openjdk.org/jdk/pull/14298

Reply via email to