On Thu, 8 Oct 2026 05:24:05 GMT, Alexander Zuev <[email protected]> wrote:
> The error message printed out into the log is generated by the GET_MAIN_JENV > macro when it detects that the JVM is detached. But lately macOS became more > and more asynchronous and is caching accessibility objects references so it > is possible that during the application shutdown the system keeps calling > these native a11y methods. We already have a safeguard in place defending us > from this scenario - in all places after we call GET_MAIN_JENV we check that > env is not set to NULL before attempting to call Java methods. So i am > replacing GET_MAIN_JENV macro usage with GET_MAIN_JENV_NOWARN which does > exactly the same but does not generate the error message and stack dump in > the stderr. > > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). does not crash on Platform.exit() now. (just in case: did not help with [JDK-8393476](https://bugs.openjdk.org/browse/JDK-8393476)) ------------- Marked as reviewed by angorya (Reviewer). PR Review: https://git.openjdk.org/jfx/pull/2339#pullrequestreview-5463170583
