JIT: Make async tail merging layout equality assert a check#128712
Merged
Conversation
This reverts commit 269c0be.
This reverts commit 782d0fb.
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR backs out the async suspension tail-merge optimization in the CoreCLR JIT to avoid the ContinuationLayoutBuilder::Equals assertion failure reported in #128704.
Changes:
- Removes the async suspension reuse/merge path and its associated metric.
- Removes helper comparison APIs that were only used by the merge logic.
- Restores per-suspension state creation while keeping existing continuation layout/reuse flow intact.
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/coreclr/jit/jitmetadatalist.h |
Removes the now-unused SuspensionPointsMerged JIT metric. |
src/coreclr/jit/gentree.h |
Removes the unused GenTreeLclVarCommon::EqualsLocal declaration. |
src/coreclr/jit/gentree.cpp |
Removes the EqualsLocal implementation formerly used by async suspension merging. |
src/coreclr/jit/async.h |
Removes declarations for suspension reuse helpers and updates suspension fill signature. |
src/coreclr/jit/async.cpp |
Removes suspension tail-merge logic and always creates a distinct suspension state per async call. |
Member
Author
|
cc @dotnet/jit-contrib PTAL @AndyAyersMS |
AndyAyersMS
approved these changes
May 28, 2026
Member
Author
|
/ba-g Simple change, merging to fix innerloop |
This was referenced May 29, 2026
Open
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.
#128704 shows that the comment is false. Just make the assert a real check until I have time to look into why it wouldn't be true.
Fix #128704