Repository navigation
Conversation
|
This pull request references the following Redmine tickets: |
XrXr
marked this pull request as draft
November 27, 2026 03:07
XrXr
force-pushed
the
zjit-fix-mem-displacement
branch
from
November 27, 2026 03:36
c14f454 to
aa99135
Compare
This is the same fix as 8b7fab6, applied to ZJIT. That commit, the parent commit, and this commit combine to fix [Bug #22546] as far as I can tell. Previously, there was silent truncation of 32-bit displacements outside `[-32768, 32767]`. I don't know of a way to trigger this issue from ruby code with ZJIT, as there are other (unrelated) checks that obscure creating a problematic memory operand. ZJIT gets some testing of many-locals situation through the new test in bootstraptest/test_yjit.rb.
XrXr
force-pushed
the
zjit-fix-mem-displacement
branch
from
November 27, 2026 03:51
aa99135 to
e6ee41f
Compare
XrXr
marked this pull request as ready for review
November 27, 2026 03:52
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.
See each commit. This is mostly a YJIT PR with ZJIT mostly tagging along for the ride since we don't have a ruby level repro for ZJIT. I'm just porting encoder fix over to ZJIT. Ref #20213
ZJIT has
test_emit_leawhich covers what the addedtest_lea_with_large_displacementtests.