Repository navigation
JIT: Skip GC info for trivial async calls for x86 - #121941
Merged
Merged
Conversation
For x86 we only report GC pointers live in callee save registers, and we also avoid reporting any trivial call. There is compensating code upstream of the GC reporting that returns for trivial calls, but this code did not account for the GC ref returned for async continuations. Thus it was possible that we made it into the GC encoder with a trivial call and then hit an assert.
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes an assertion failure in the GC encoder for x86 when processing trivial async calls. The issue occurred because the code that masks out return registers for GC reporting only accounted for the standard integer return register (EAX), but not the long return register pair (EDX:EAX) or the async continuation return register (ECX). The fix extends the mask to include all three register sets.
Member
Author
|
PTAL @dotnet/jit-contrib. |
AndyAyersMS
approved these changes
Nov 25, 2025
MichalStrehovsky
added a commit
that referenced
this pull request
Nov 25, 2025
The fix presumably merged in #121941.
MichalStrehovsky
added a commit
that referenced
this pull request
Nov 26, 2025
The fix presumably merged in #121941. Cc @dotnet/ilc-contrib
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
For x86 we only report GC pointers live in callee save registers, and we also avoid reporting any trivial call.
There is compensating code upstream of the GC reporting that returns for trivial calls, but this code did not account for the GC ref returned for async continuations. Thus it was possible that we made it into the GC encoder with a trivial call and then hit an assert.
Fix #121872