Repository navigation
Define VM.getNanoTimeAdjustment, so Instant.now() works - #18
Merged
Merged
Conversation
The native behind Clock.currentInstant was undefined, so Instant.now() and anything built on it signalled UNDEFINED-FUNCTION. One path to it is Date.toString in a time zone CLDR has no display name for (GMT+07:00, say): TimeZone.getDisplayName falls back to a GMT format through Instant.now(), which is why aaa/ni.java failed outside UTC. Answer as HotSpot does: the nanoseconds from the given epoch offset to now, or -1 when the offset is 2^32 seconds or more away.
burinc
added a commit
to jlt-commons/jolt-openldk
that referenced
this pull request
Oct 14, 2026
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]>
Owner
|
Thank you for all of your great PRs! |
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.
VM.getNanoTimeAdjustment, the native behindClock.currentInstant, is undefined, soInstant.now()signals UNDEFINED-FUNCTION on any platform.Date.toStringreaches it too in a time zone with no CLDR display name (GMT+07:00, say), throughTimeZone.getDisplayName's GMT-format fallback. That's whyaaa/ni.javafails outside UTC.This defines it as HotSpot does: nanoseconds from the given epoch offset to now, or -1 when the offset is 2^32 seconds or more away. It reads the clock the way
System.nanoTime()already does.Checks: a unit test of the contract (24/24 pass), and the new
aaa/instant.java. On macOS arm64 with #16 and #17 as well,make check-regressionpasses, 501 core passes against a baseline of 492, withaaa/ni.javapassing.