Repository navigation
JIT: omit wasm Virtual IP updates in throw helper blocks - #137201
Merged
Merged
Conversation
Throw helpers inherit the throwing site's Virtual IP. Contributes to dotnet#135985. Co-authored-by: Copilot <[email protected]> Copilot-Session: 1da7d7aa-79b4-4ae1-ae4a-9861fdf9681c
|
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. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Member
Author
|
Throw helper blocks don't have predecessors, so the flow based analysis we do made the worst-case assumption that a VIP update was needed. They're not, and the VIP updates done there were redundant. Apparently brotli is pretty good at compressing redundant sequences, so the compressed savings are pretty small. ptal @adamperlin |
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
lewing
approved these changes
Nov 9, 2026
adamperlin
approved these changes
Nov 9, 2026
Member
Author
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.
Throw helpers inherit the throwing site's Virtual IP, so they don't need their own updates. Exclude these blocks from VIP store insertion while retaining their numbering and EH extents.
The existing availability analysis misses this redundancy because throw-helper branches aren't ordinary CFG edges.
Size
Havit composite R2R:
SuperPMI: 38,469 successful contexts per JIT, 29,189 smaller, none larger. No GC-info size or EH-clause-count changes. One context with identical missing collection data on both JITs was excluded. Size figures use emitted code-byte metrics; the Wasm native differ has known decoder failures and false reports.
Validation
build.cmd clr.crossarchtools -os browser -arch wasm -c Release /p:RuntimeFlavor=CoreCLRpassed.Contributes to #135985.
Note
This PR description was generated with GitHub Copilot.