Repository navigation
Conversation
packageNativeImage removed the libraries GraalVM copies beside the image on Linux only. On Windows, gemstone.exe was left with freetype.dll, java.dll, javaaccessbridge.dll, jawt.dll and jvm.dll, none of which it imports or loads (found by Gemstone: dumpbin shows none, and the exe runs alone from an empty directory). The java and jvm shims are never opened by a static image, freetype.lib and jawt.lib are linked in from the Windows static JDK archives, and nothing registers the Access Bridge. NativeImageLeftovers holds the list per host (Linux's unchanged, macOS none) and removes only those names, so what the application puts there stays. NativeImageLeftoversTest failed on both Windows cases with Windows removing nothing, as before, and passes now. Fixes #75
This branch has not been deployed
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.
Fixes #75.
Problem.
packageNativeImageremoved the libraries GraalVM copies next to the image, but only on Linux (removeUnneededLinuxLibraries). On Windows, Gemstone'sgemstone.exe(LogitAI/Gemstone JetBrains#255, plugin 1.11.1-ext.3) was left withfreetype.dll,java.dll,javaaccessbridge.dll,jawt.dllandjvm.dll. None of them is needed:dumpbin /dependentsshows the exe imports none of them, and the exe runs Gemstone's smoke test alone from an empty directory.java.dllandjvm.dllare shims that a static image never opens.freetype.libandjawt.libare linked in from the Windows static JDK archives.Change. A new
internal object NativeImageLeftoversholds, per host, the file names the executable doesn't load:libjava.so,libjvm.so,libawt_headless.so,libfreetype.so: the same as beforeIt removes only those names, so files the application puts there itself stay.
AbstractNativeImageTaskcalls it for every host, in place of the Linux-only function.Test, red first.
NativeImageLeftoversTest, a new unit test, has four cases:gemstone.exe..pdbare kept.Local runs (macOS arm64). With Windows set to remove nothing, as before this change, both Windows cases failed and the Linux and macOS cases passed. With the change, all four pass, and the existing
NativeImage*unit tests pass too.Not checked here. No local build on Windows ran; nothing in this repo builds a Windows image in CI either. Gemstone's native-desktop job checks the real output.
🤖 Generated with Claude Code