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

Alan Bateman alanb at openjdk.org
Tue Feb 10 11:09:04 UTC 2026


On Mon, 9 Feb 2026 10:35:04 GMT, Daniel Fuchs <dfuchs 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.

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

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


More information about the core-libs-dev mailing list