RFR: 8349105: Pagination: exception initializing in a background thread [v6]

Andy Goryachev angorya at openjdk.org
Fri Feb 14 18:26:31 UTC 2025


> ## Root Cause
> Animation gets started in a background thread, which causes the animation handler to run in the FX application thread, thus creating simultaneous access to the control's fields (list of children in this case).
> 
> ## Solution
> Postpone the animation unless running in the FX application thread.  There is no functional difference if the component is created/used in the FX application thread.

Andy Goryachev has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains nine commits:

 - Merge remote-tracking branch 'origin/master' into 8349105.thread.safety.pagination
 - Merge branch '8349756.pagination.leak' into 8349105.thread.safety.pagination
 - back to constructor
 - memory leak
 - remove gc
 - slow down gc
 - gc
 - Merge branch 'master' into 8349105.thread.safety.pagination
 - postpone animation

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

Changes: https://git.openjdk.org/jfx/pull/1698/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1698&range=05
  Stats: 14 lines in 2 files changed: 6 ins; 6 del; 2 mod
  Patch: https://git.openjdk.org/jfx/pull/1698.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1698/head:pull/1698

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


More information about the openjfx-dev mailing list