Repository navigation
Feat: Take the Java toolkit off the Linux GraalVM image, and give macOS the same main dispatcher (follows #173, #184) - #204
Merged
Conversation
…e loop and leaves Swing's provider out The probes showed the toolkit reached through the toolkit window's entry (folded out at build time), and then only through Skiko's Swing dispatcher. The fork can send that work to Dispatchers.Main (compose.main.dispatcher=coroutines); FrameMainDispatcher answers there and runs once a frame in the X11 loop. The fork's desktop modules are built once in CI and the Linux jobs read them first. build-compose.sh pins the fork at the commit holding the AWT-free changes and has a desktop target.
…frame, and the Linux image is checked for toolkit libraries
…transfer type is reachable
… on the Linux image The fork reads a String nativeClipboard for Paste, but renderer tests and macOS keep the toolkit's type. -Ddxc.awt.clipboard=false (Linux image only) selects the plain one at build time.
…x image, and let the smoke test prove nothing loads them The fork's AWT clipboard fallback and similar branches keep java.desktop classes reachable although nothing runs them, so reachability cannot be the guard. Running the image without the libraries is.
b-re-w
added a commit
that referenced
this pull request
Oct 5, 2026
Feat: Switch the toolkit out of the Linux image with the fork's ExtendedAwt, check its ways in, drop the libjawt stub (follows #204)
b-re-w
added a commit
that referenced
this pull request
Oct 17, 2026
… Compose's main-thread work in the Win32 frame loop The Windows image ran Compose's main-thread work on Swing (kotlinx.coroutines.swing.Swing, compose.main.dispatcher=unset, run 39014707510) and carried the whole AWT stack, now that it opens its own window by default. As the macOS and Linux images do (#193, #204, #205, #208 to #210): - the Win32 branch sets java.awt.headless, installs FrameMainDispatcher, and the frame loop and the resize frame run its pending work first; - the scene gets the window's own clipboard, as NativeWindowContent gives the AppKit and X11 windows; - build-native-windows.ps1 builds with -Ddxc.toolkit.window=false, -Dcompose.awt=false and -Ddxc.awt.clipboard=false, forbids java.awt.Toolkit and java.awt.Component, leaves kotlinx-coroutines-swing off the class path, drops the ImeReachabilityFeature, the preserved java.desktop module and the toolkit's reachability metadata (kept for the development shell), removes the toolkit libraries Native Image stages, and puts a stub jawt.dll (win32_jawt_stub.c) beside skiko's library when that library imports it; - windows-build-contract.test.sh states the new contract.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work in progress, opened so #193 can build on FrameMainDispatcher. Not mergeable until the Linux GraalVM jobs pass.
Currently iterating on remaining java.awt reachability with a call-tree probe commit (to be dropped).