On Thu, 13 Jun 2024 10:28:06 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> Inigo Mediavilla Saiz has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Remove unneeded line > > I've created [JDK-8334215](https://bugs.openjdk.org/browse/JDK-8334215) with > issues found when trying to sync up the loom repo. The tests in that repo are > typically run with JTREG_TEST_THREAD_FACTORY=Virtual and can tickle issue > that we don't always see immediately in main line. Thanks for the follow up @AlanBateman. I can take care of creating the PR with the proposed fix. I'm still struggling to understand this sentence though: The test also 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. Would you mind explaining why unparking the main (virtual) thread can end up with the main thread observing the dummy thread in transition ? ------------- PR Comment: https://git.openjdk.org/jdk/pull/19482#issuecomment-2165867507