RFR: 8378607: GlyphLayout cache can prevent Fonts from being GC'd

Jayathirth D V jdv at openjdk.org
Wed Feb 25 11:04:39 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.

Marked as reviewed by jdv (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/29904#pullrequestreview-3853269760


More information about the client-libs-dev mailing list