RFR: 8335630: Crash if Platform::exit called with fullScreen Stage on macOS 14

Kevin Rushforth kcr at openjdk.org
Tue Jul 16 11:58:58 UTC 2024


On Mon, 15 Jul 2024 23:31:43 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>>> since all accesses are happening on the FX app thread
>> 
>> Not quite right: the following threads access the field, apart from JavaFX Application Thread:
>> 
>> 
>> thread=JavaFX-Launcher
>> thread=Thread-2
>> thread=PulseTimer-CVDisplayLink thread
>> thread=QuantumRenderer-0
>> 
>> 
>> The output above logs thread names that access `Application.application` field, running the reproducer attached to both tickets.
>
> To clarify, I'm talking about the accesses that have anything to do with this bug, and specifically, the methods that I modified. Those are all on the FX application thread. Unrelated to this bug, there are plenty of calls to Platform.runLater on other threads, which will indeed access the `Application.application` field from that other thread.

I filed [JDK-8336476](https://bugs.openjdk.org/browse/JDK-8336476) as a follow-up bug to address the race condition.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1506#discussion_r1679261056


More information about the openjfx-dev mailing list