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

Phil Race prr at openjdk.org
Sat Feb 28 23:01:31 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.

This pull request has now been integrated.

Changeset: f3d7ca33
Author:    Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f3d7ca33d797c3475a4c31d612e7ed8f71d1f5b0
Stats:     19 lines in 1 file changed: 5 ins; 7 del; 7 mod

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

Reviewed-by: jdv, tr

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

PR: https://git.openjdk.org/jdk/pull/29904


More information about the client-libs-dev mailing list