RFR: 8347392: Thread-unsafe implementation of c.s.j.scene.control.skin.Utils

Andy Goryachev angorya at openjdk.org
Thu Feb 6 22:35:16 UTC 2025


On Thu, 30 Jan 2025 23:35:05 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> Thread-safe and re-entrant implementation of Utils.
> 
> The new code still uses the static instances of Text and TextLayout for performance reasons, but adds a thread-safe mechanism to keep track of whether any of the instances is in use and when that happens, supplies a new instance instead.  This solves both thread safety and re-entrancy.

@kevinrushforth I'd suggest to take a look at this first, as it blocks some other fixes.  thanks!

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

PR Comment: https://git.openjdk.org/jfx/pull/1691#issuecomment-2641273730


More information about the openjfx-dev mailing list