On Wed, 25 Feb 2026 18:36:06 GMT, Phil Race <[email protected]> wrote:

> This fixes a problem whereby because a bound up call stub method handle holds 
> on to the bound argument using a JNI Global Ref, GC of that object is 
> prevented until the method handle is freed.
> In the font layout code this causes us to be unable to collect fonts which 
> are used as the bound argument.
> So this fix changes from using the bound arg to using the existing scoped 
> value font.

src/java.desktop/share/classes/sun/font/HBShaper.java line 490:

> 488:          */
> 489: 
> 490:         Font2D font2D  = scopedVars.get().font();

Suggestion:

        Font2D font2D = scopedVars.get().font();

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29924#discussion_r2869769439

Reply via email to