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

Kevin Rushforth kcr at openjdk.org
Thu Aug 29 15:17:23 UTC 2024


On Thu, 29 Aug 2024 06:24:49 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:
> 
>   Flip default owner flag

Marked as reviewed by kcr (Author).

Updated changes look good. I tested it and it does what I would expect.

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

PR Review: https://git.openjdk.org/jdk/pull/20688#pullrequestreview-2269149181
PR Comment: https://git.openjdk.org/jdk/pull/20688#issuecomment-2318050832


More information about the client-libs-dev mailing list