> 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).

Andy Goryachev has updated the pull request incrementally with one additional 
commit since the last revision:

  proper initialization

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/2205/files
  - new: https://git.openjdk.org/jfx/pull/2205/files/7073e8f4..bab8376f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=2205&range=01
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2205&range=00-01

  Stats: 15 lines in 1 file changed: 4 ins; 4 del; 7 mod
  Patch: https://git.openjdk.org/jfx/pull/2205.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2205/head:pull/2205

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

Reply via email to