Repository navigation
Bind bootstrap object-store dispatch to the original global store - #180
Merged
Merged
Conversation
Link fallback calls through generated constant call sites and keep GlobalObjectStore and its nested classes out of bootstrap glue. Derive fallback argument loads from descriptors and verify local and bootstrap dispatch signatures.
mcculls
marked this pull request as ready for review
December 3, 2026 15:06
mcculls
requested review from
amarziali and
mhlidd
and removed request for
a team
December 3, 2026 15:06
amarziali
reviewed
Dec 3, 2026
amarziali
approved these changes
Dec 3, 2026
amarziali
left a comment
There was a problem hiding this comment.
it sounds ok. I left a finding codex helped me to spot
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.
What Does This Do
invokedynamicandConstantCallSitetargets on the originalGlobalObjectStore.Motivation
Keep fallback reads and writes on the original global store when dispatch runs from the bootstrap loader. This avoids generating and injecting a second store with its own state.
Additional Notes
:field-inject:checkpassed on Java 8, 11, 17, 21, and 25.Ran
ObjectStoreDispatchBenchmarkwith JMH 1.37 on macOS arm64 using Zulu Java 8 (1.8.0_514), Zulu Java 17 (17.0.21.1), Zulu Java 21 (21.0.13.1). Each case used four forks, one thread, a 512 MiB heap, five one-second warmup iterations, and five one-second measurement iterations. Scores are JMH mean ± reported error in ns/op.getHitdirectgetHitfinalHandlegetHitindygetMissdirectgetMissfinalHandlegetMissindyputExistingdirectputExistingfinalHandleputExistingindyputAndRemovedirectputAndRemovefinalHandleputAndRemoveindyJMH used full blackholes on Java 8 and compiler blackholes on Java 17 and 21. The direct baseline also uses a separate store in the bootstrap loader. The benchmark measures the complete fallback path.
On Java 17, the reported error intervals for
getMissoverlap across all three variants. Theindyvariant had the lowest mean forputAndRemoveon Java 17, whiledirecthad the lowest mean on Java 21.