RFR: 8377457: java/util/logging/ParentLoggersTest.java failed intermittently

Daniel Fuchs dfuchs at openjdk.org
Tue Feb 10 14:26:54 UTC 2026


On Tue, 10 Feb 2026 11:06:30 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> `java/util/logging/ParentLoggersTest.java` has been observed failing intermittently - nut rarely - in the loom repo.
>> After inspection of the code Logger::doSetParent was found to do multiple read of the volatile `parent` field. After changing the method to do a single read the test has no longer been observed failing.
>
> The intermittent failures were with JTREG_TEST_THREAD_FACTORY=Virtual runs and it was indeed that the returned list of loggers didn't match. It was changed to read the parent field once in the loom repo and the test no longer fails.

Thanks @AlanBateman and @jaikiran for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/29634#issuecomment-3877941367


More information about the core-libs-dev mailing list