Repository navigation
JIT: don't let tail-merge try and remove the OSR-protected entry block - #131164
Conversation
Fixes dotnet#131056 Co-authored-by: Copilot <[email protected]>
|
@jakobbotsch PTAL |
|
Azure Pipelines: Successfully started running 5 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
There was a problem hiding this comment.
Pull request overview
This PR prevents fgHeadTailMerge from removing the OSR-protected original entry block (fgEntryBB) while it still has an artificial bbRefs increment applied during import. This avoids hitting fgRemoveBlock assertions that require removed blocks to have bbRefs == 0 and bbPreds == nullptr.
Changes:
- Add an OSR-specific guard in tail-merge block removal to skip removing
fgEntryBBwhile it is still tracked as the “original method entry”. - Add an explanatory comment documenting the OSR artificial
bbRefsbump / unprotect sequence.
|
Thank you for the fix. |
|
Rerunning failed build. |
jakobbotsch
left a comment
There was a problem hiding this comment.
LGTM, feel free to ignore
Fixes #131056