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

Prasanta Sadhukhan psadhukhan at openjdk.org
Wed Sep 4 05:08:24 UTC 2024


On Fri, 23 Aug 2024 09:17:43 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..

This pull request has now been integrated.

Changeset: 9a1024de
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9a1024dec68057c7c581ac0a38fc7f96489a0a76
Stats:     27 lines in 3 files changed: 19 ins; 1 del; 7 mod

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

Co-authored-by: Kevin Rushforth <kcr at openjdk.org>
Reviewed-by: kcr, azvegint

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

PR: https://git.openjdk.org/jdk/pull/20688


More information about the client-libs-dev mailing list