Repository navigation
JIT: initialize wasm funclet relocation addends - #137278
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 1da7d7aa-79b4-4ae1-ae4a-9861fdf9681c
AndyAyersMS
requested review from
adamperlin
and
a balanced review from Copilot
and removed request for
adamperlin
November 10, 2026 21:00
|
Azure Pipelines: Successfully started running 6 pipeline(s). 9 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Member
Author
|
@adamperlin PTAL Fixes some spurious SPMI diffs. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change to initialize Wasm funclet relocation addends.
No open issues 🎉
What changed in this PR
This PR initializes Wasm funclet relocation addends in the JIT to prevent uninitialized bytes from causing spurious SuperPMI differences or decoder failures.
Changes:
- Write the padded funclet index before notifying the execution engine, which can still overwrite it.
- Assert that the index is nonnegative and fits in a signed 32-bit integer.
| File | Description |
|---|---|
src/coreclr/jit/emitwasm.cpp |
Initialize padded funclet relocation addends and assert the index range. |
Review effort: Balanced
lewing
approved these changes
Nov 10, 2026
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
adamperlin
approved these changes
Nov 10, 2026
Member
Author
|
/ba-g unrelated build issues, this change can only affect Wasm |
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.
Initialize padded Wasm funclet relocation addends before notifying the EE. SuperPMI only records relocations, so these bytes could otherwise remain uninitialized and cause spurious native differences or decoder failures.
The EE remains free to overwrite the addends.
Validation: Release/Checked Wasm JIT builds and Havit AOT publications passed. Unmodified SuperPMI replayed 38,469 contexts with zero self-differences or errors. Frozen-input AOT code sections were byte-identical.
Note
This PR description was generated with GitHub Copilot.