Integrated: 8338478: [macos] Crash in CoreText with certain strings using JDK 22 or later

Phil Race prr at openjdk.org
Mon Aug 19 19:21:58 UTC 2024


On Sat, 17 Aug 2024 21:02:59 GMT, Phil Race <prr at openjdk.org> wrote:

> The test in the bug report crashes reliably with JDK 22 on retina.
> It coincides with an update to the macOS compilers which seem likely to eagerly invalidate the target of a CFRelease on the native CTFontRef.
> Adding a ReachabilityFence to prevent the GC from collecting CTFontStrike until after the method has finished using the native fontRef from the strike fixes it.
> The same pattern is observed in 3 other methods (although no crash)  and a fence is added there too.
> 
> There is an existing test, which is how this problem was found.

This pull request has now been integrated.

Changeset: 269d6897
Author:    Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/269d6897e4d4e62beff3a2179dcdabe8a0bf0bc7
Stats:     87 lines in 1 file changed: 32 ins; 14 del; 41 mod

8338478: [macos] Crash in CoreText with certain strings using JDK 22 or later

Reviewed-by: kcr, arapte

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

PR: https://git.openjdk.org/jfx/pull/1537


More information about the openjfx-dev mailing list