Repository navigation
JIT: REX.W prefix jmp [abs32] form used for tailcalls - #136845
Open
jakobbotsch wants to merge 2 commits into
Open
jakobbotsch wants to merge 2 commits into
jakobbotsch wants to merge 2 commits into
Conversation
Like other instructions emitted in the epilog this one must be rex.w prefixed for the unwinder to recognize it as being part of an epilog. Also avoid using APX registers for the target register; encoding those will require prefixes that also are not recognized by the unwinder. Fix dotnet#129071
|
Azure Pipelines: Successfully started running 5 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Member
APX will require UnwindInfo v3. UnwindInfo v3 does not disassemble the epilogs, and thus it does not have restrictions around instructions encodings. |
Member
Author
Good point! Undid that. |
jakobbotsch
marked this pull request as ready for review
November 3, 2026 07:22
Member
Author
|
cc @dotnet/jit-contrib PTAL @adamperlin |
This branch has not been deployed
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.
Like other instructions emitted in the epilog this one must be rex.w prefixed for the unwinder to recognize it as being part of an epilog.
Fix #129071
I did have Copilot validate based on the instructions in #129071 (comment), and it did see corruptions with the baseline JIT but not with the fixed JIT. No test added since it is very difficult to force the JIT to emit this form of epilog jump.