Repository navigation
Conversation
…dotnet#136260) Fixes dotnet#136255 `fgRemoveUnreachableBlocks` empties unreachable `BBF_DONT_REMOVE` blocks and converts them to `BBJ_THROW`, but kept `BBF_NEEDS_GCPOLL` (here from an inlined `Thread.FastPollGC()` that was compacted into a cloned try-entry block, which RBO later made unreachable). `fgInsertGCPolls` then tried to insert an inline poll into the empty throw block, and `fgCreateGCPoll` dereferenced a null statement while moving the "last" statement into the bottom block. The fix clears the GC poll flags when the block's code is removed. [No diffs](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1644700&view=ms.vss-build-web.run-extensions-tab) Copilot-Session: 03b08106-36f9-48c0-9efb-d9e33ca7965c (cherry picked from commit a99fb4b)
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
adamperlin
approved these changes
Dec 1, 2026
This branch has not been deployed
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.
Fixes Issue #136255
main PR #136260
Description
Backport of #136260 to release/11.0.
fgRemoveUnreachableBlocksconverts unreachableBBF_DONT_REMOVEblocks to throws but keptBBF_NEEDS_GCPOLL.fgCreateGCPollthen dereferenced a null statement. The fix clears the GC poll flags when the block's code is removed.Customer Impact
The JIT crashes (SIGSEGV) while recompiling a method at tier 1 with dynamic PGO, and the process dies.
Regression
Reported on 11.0 RC2. Not reproducible on .NET 10.
Testing
No regression test (the main PR has none).
Risk
Low. One-line fix, no diffs in main.
Note
PR description generated with GitHub Copilot.