RFR: 8334215: serviceability/dcmd/thread/PrintMountedVirtualThread.java failing with JTREG_TEST_THREAD_FACTORY=Virtual [v4]

Alan Bateman alanb at openjdk.org
Tue Jun 18 19:32:10 UTC 2024


On Tue, 18 Jun 2024 11:51:31 GMT, Inigo Mediavilla Saiz <duke at openjdk.org> wrote:

>> Follow up to https://github.com/openjdk/jdk/pull/19482 that was causing issues when the PrintMountedVirtualTest.java was
>> running with `JTREG_TEST_THREAD_FACTORY=Virtual` in the loom repo. 
>> 
>> - Fixes issues where the test observes the thread during transitions.
>> - Fixes a potential issue in the test where CountDownLatch.countDown unparks the main (virtual) thread and the main thread observes the dummy thread is transition .
>
> Inigo Mediavilla Saiz has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove thread name from the output

The changes in latest version (af85b261) look okay to me. We'll adjust this in the loom repo so that the Carrying and Mounted lines will print the thread ID for all cases.

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

PR Comment: https://git.openjdk.org/jdk/pull/19744#issuecomment-2176812086


More information about the serviceability-dev mailing list