RFR: 8293819: sun/util/logging/PlatformLoggerTest.java failed with "RuntimeException: Retrieved backing PlatformLogger level null is not the expected CONFIG"
Jaikiran Pai
jpai at openjdk.org
Thu Sep 15 13:59:46 UTC 2022
On Thu, 15 Sep 2022 11:29:40 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> The sun/util/logging/PlatformLoggerTest.java is missing a couple of Reference::reachabilityFence calls to maintain loggers alive while the test is running. It has been observed failing under stress.
test/jdk/sun/util/logging/PlatformLoggerTest.java line 136:
> 134: logger.getName() + " " + logger.getLevel());
> 135: }
> 136: Reference.reachabilityFence(logger);
Hello Daniel, I don't follow why the reachabilityFence would be needed here for the `logger`. Wouldn't the `logger` be already "alive" at this line in the method?
-------------
PR: https://git.openjdk.org/jdk/pull/10284
More information about the core-libs-dev
mailing list