RFR: 8361524: [XWayland] possible JavaFX interop hang

Alexander Zuev kizune at openjdk.org
Thu Jul 24 08:33:02 UTC 2025


On Mon, 7 Jul 2025 21:41:18 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

> Callbacks in the `src/java.desktop/unix/native/libawt_xawt/awt/screencast_portal.c` file normally have the following pattern:
> 
> 
> helper->isDone = TRUE;
> callbackEnd();
> // return;
> 
> 
> Failing to call `callbackEnd()` could result in a hang if another GTK loop is running (e.g., JavaFX see https://github.com/openjdk/jdk/pull/22131#issue-2660482472).
> 
> This fix corrects this flaw.

Marked as reviewed by kizune (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/26172#pullrequestreview-3050647811


More information about the client-libs-dev mailing list