Skip to content

Adjust ImageIO static library expectations for GraalVM 25.5.5 - #461

Merged
jerboaa merged 1 commit into
Karm:masterfrom
zakkak:fix/imageio-static-library-expectations
Oct 28, 2026
Merged

jerboaa merged 1 commit into
Karm:masterfrom
zakkak:fix/imageio-static-library-expectations

Conversation

@zakkak

@zakkak zakkak commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

It looks like libnet.a, libnio.a and libzip.a are no longer fetched after b476b7ebc8f

oracle/graal#14684 changes library discovery and linking in three relevant ways:

  • Static JNI libraries are now linked according to reachability and manifest dependencies. JNILibraryLinkagePlan replaces the previous registration and hardcoded dependency logic. net, nio, and zip still default to static linkage; they haven’t simply switched to dynamic linkage.
  • Loading libjava no longer goes through Java filesystem code. Previously loadJavaLibrary() called loadLibraryRelative("java"), which constructs File objects and includes filesystem canonicalization paths. It now calls loadBuiltinLibjava() directly. Removing that incidental reachability explains how NIO/network support can drop out; the old dependency logic also pulled net in whenever nio was linked.
  • The explicit ZIP linking trigger was removed. In JDKInitializationFeature, the commit deletes the reachability handler for java.util.zip.ZipUtils.loadLibrary and its registerAndLinkZip() method, which explicitly added zip to the static libraries.

The preceding commit, [bf8d80f2698](https://github.com/oracle/graal/commit/bf8d80f2698) — “Avoid File use during early native library initialization”, also removes incidental filesystem reachability from raw file operations.

@jerboaa jerboaa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@jerboaa
jerboaa merged commit 3b2acc7 into Karm:master Oct 28, 2026
22 of 25 checks passed
@zakkak
zakkak deleted the fix/imageio-static-library-expectations branch October 29, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants