RFR: 8190329: [macos] Swing InterOp Platform.exit() crash [v4]

Kevin Rushforth kcr at openjdk.org
Sat Aug 31 15:26:20 UTC 2024


On Fri, 30 Aug 2024 07:23:54 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> The testcase calls Platform.exit before the dialog is made visible but
>> on macOS, JavaFX takes over the AppKit thread and uses that as the FX application thread. As part of the FX platform shutdown process, it detaches that thread from the JVM. This means that the AppKit thread is no longer available to Java processes
>> so AWT crashes when it ties to access appkit thread.
>> Fix is made to check if the thread has been detached for move-resize notification event before proceeding..
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use cached Env only for AWT NSApplication and not for Override-delegate

Marked as reviewed by kcr (Author).

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

PR Review: https://git.openjdk.org/jdk/pull/20688#pullrequestreview-2273885569


More information about the client-libs-dev mailing list