RFR: JDK-8310066: Improve test coverage for JVMTI GetThreadState on carrier and mounted vthread [v3]
Serguei Spitsyn
sspitsyn at openjdk.org
Thu Jun 29 14:28:57 UTC 2023
On Thu, 29 Jun 2023 04:41:20 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
>
> Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
>
> spurious wakeups
test/hotspot/jtreg/serviceability/jvmti/vthread/GetThreadStateMountedTest/GetThreadStateMountedTest.java line 62:
> 60: TestStatus status = new TestStatus("JVMTI_THREAD_STATE_RUNNABLE");
> 61: CountDownLatch ready = new CountDownLatch(1);
> 62: final boolean[] stopFlag = new boolean[1];
Q: It is not clear why an array is needed instead of non-final local. The same question for `waiting()` method below.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14622#discussion_r1246698740
More information about the serviceability-dev
mailing list