8239013: java.util.logging.Logger catalog cache keeps strong references to ResourceBundles
Daniel Fuchs
daniel.fuchs at oracle.com
Fri May 22 09:33:01 UTC 2020
Hi,
Please find below a fix for:
8239013: java.util.logging.Logger catalog cache keeps strong
references to ResourceBundles
https://bugs.openjdk.java.net/browse/JDK-8239013
webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8239013/webrev.00/
java.util.logging.Logger has a `catalog` variable that acts
as a cache and holds a reference to the last resource bundle
that was loaded by the logger.
This fix replaces the strong reference with a weak reference,
allowing the cached object to be garbage collected even in
cases where a strong reference to the logger remains.
best regards,
-- daniel
More information about the core-libs-dev
mailing list