On Wed, 25 Feb 2026 00:52:24 GMT, Phil Race <[email protected]> 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 <[email protected]>
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

Reply via email to