RFR: 8378607: GlyphLayout cache can prevent Fonts from being GC'd
Tejesh R
tr at openjdk.org
Fri Feb 27 07:08:20 UTC 2026
On Wed, 25 Feb 2026 00:52:24 GMT, Phil Race <prr at openjdk.org> wrote:
> Update a cache in GlyphLayout.java to use a WeakHashMap
> The maximum cache size is also reduced.
> The intention is to allow Fonts loaded via Font.createFont() to be collected once the application drops references.
LGTM.
-------------
Marked as reviewed by tr (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29904#pullrequestreview-3865336387
More information about the client-libs-dev
mailing list