RFR: JDK-8310066: Improve test coverage for JVMTI GetThreadState on carrier and mounted vthread

Andrey Turbanov aturbanov at openjdk.org
Mon Jun 26 21:00:02 UTC 2023


On Fri, 23 Jun 2023 01:57:56 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> This is follow-up JDK-8307153/JDK-8309612 (JVMTI GetThreadState on carrier should return STATE_WAITING)
> New test tests GetThreadState for different thread states.
> The test detected a bug in the implementation, new issue is created: JDK-8310584
> Corresponding testcases are commented now in the test, fix for JDK-8310584 will uncomment them

test/hotspot/jtreg/serviceability/jvmti/vthread/GetThreadStateMountedTest/GetThreadStateMountedTest.java line 85:

> 83:             }
> 84:         });
> 85:         synchronized(syncObj) {

Suggestion:

        synchronized (syncObj) {

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14622#discussion_r1242759252


More information about the serviceability-dev mailing list