Integrated: 8307153: JVMTI GetThreadState on carrier should return STATE_WAITING
Serguei Spitsyn
sspitsyn at openjdk.org
Wed Jun 7 13:20:02 UTC 2023
On Sat, 3 Jun 2023 10:53:04 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> 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
This pull request has now been integrated.
Changeset: 177e8327
Author: Serguei Spitsyn <sspitsyn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/177e8327d685444d63235567f2a9bde0ec3d51cf
Stats: 82 lines in 4 files changed: 65 ins; 0 del; 17 mod
8307153: JVMTI GetThreadState on carrier should return STATE_WAITING
Reviewed-by: amenkov, cjplummer
-------------
PR: https://git.openjdk.org/jdk/pull/14298
More information about the serviceability-dev
mailing list