8239013: java.util.logging.Logger catalog cache keeps strong references to ResourceBundles
Lance Andersen
lance.andersen at oracle.com
Fri May 22 13:24:33 UTC 2020
Hi Daniel,
This looks good to me :-)
Best
Lance
> On May 22, 2020, at 5:33 AM, Daniel Fuchs <daniel.fuchs at oracle.com> 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
<http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
More information about the core-libs-dev
mailing list