On Tue, 7 Jul 2026 19:41:40 GMT, Andy Goryachev <[email protected]> wrote:

> Fixes double check locking by adding the `volatile` keyword.
> 
> During normal operation, the access seems to happen from two threads:
> 
> Thread[#29,QuantumRenderer-0,5,main]
> Thread[#34,JavaFX Application Thread,5,main]
> 
> 
> On one hand, this access is likely to be mutually exclusive, on the other 
> hand, javafx does allow the nodes to be created in a background thread, and 
> it might be possible to invoke, for example, `GlyphLayout.breakRuns()` from a 
> background thread.
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: b335b181
Author:    Andy Goryachev <[email protected]>
URL:       
https://git.openjdk.org/jfx/commit/b335b18106d0a80d676d862504fb73e09c6ff53f
Stats:     17 lines in 1 file changed: 4 ins; 4 del; 9 mod

8387684: [PrismFontFile] Possibly unsafe double check locking

Reviewed-by: kcr, arapte

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

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

Reply via email to