Repository navigation
Load zlib by its macOS name on macOS - #17
Merged
Merged
Conversation
%load-zlib always loaded "libz.so.1", the Linux name, so on macOS the first java.util.zip native call (CRC32, Deflater, Inflater, GZIP and zip streams) signalled "Error opening shared object". That is a Lisp error rather than a Java exception, so a catch in Java code could not stop it. On macOS the system zlib is libz.1.dylib, served from dyld's shared cache. aaa/zlib.java checks a CRC32 and a GZIP round trip.
This was referenced Oct 14, 2026
Merged
burinc
added a commit
to jlt-commons/jolt-openldk
that referenced
this pull request
Oct 14, 2026
atgreen
added a commit
that referenced
this pull request
Oct 18, 2026
PRs #16, #17 and #18 each added a testsuite case (aaa/digest, aaa/zlib, aaa/instant). check-regression.sh only fails on lost passes and new failures, so a new test is not actually enforced until it is in the baseline. Core suites now 501 expected passes, up from 492; no test changed state. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
%load-zlibalways loads"libz.so.1", the Linux name. macOS has no such file: its zlib islibz.1.dylib, in dyld's shared cache. So on macOS the firstjava.util.zipnative call (CRC32, Deflater, Inflater, GZIP) signals "Error opening shared object". That's a Lisp error, so Java'scatch (Throwable)can't stop it. The fix picks the name with#+darwin, and Linux is unchanged.On macOS this is only reachable with #16, because loading
java.util.zipfirst goes throughBootLoader.loadLibrary. With both, CRC32, Deflater/Inflater and a GZIP round trip match the JVM, and the newaaa/zlib.java(CRC32 plus a GZIP round trip) passes. It fails with #16 alone.aaa/ni.javagets past zlib now and then needs #18 (VM.getNanoTimeAdjustment). With #16, #17 and #18 together,make check-regressionpasses on macOS: 501 core passes against a baseline of 492. macOS arm64, SBCL 2.6.9, JDK 25.0.2.