8239013: java.util.logging.Logger catalog cache keeps strong references to ResourceBundles
naoto.sato at oracle.com
naoto.sato at oracle.com
Fri May 22 20:40:23 UTC 2020
Looks good to me.
Naoto
On 5/22/20 2:33 AM, Daniel Fuchs wrote:
> 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