Skip to content

JIT: mark GC safe point after stelem.ref call transformation - #134973

Merged
EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:jit-fix-134894
Oct 1, 2026
Merged

EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:jit-fix-134894

Conversation

@EgorBo

@EgorBo EgorBo commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

fgMorphCall marked the block as a GC safe point while the stelem.ref call was still a user call, before it was replaced by a plain store (or converted back to a helper call). The stale flag could leave a call-free loop without GC polls.Fixes #134894

Diffs

fgMorphCall marked the block as a GC safe point while the stelem.ref call was
still a user call, before it was replaced by a plain store (or converted back to
a helper call). The stale flag could leave a call-free loop without GC polls.

Fixes dotnet#134894

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 30, 2026
@azure-pipelines

Copy link
Copy Markdown
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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@EgorBo
EgorBo requested a review from jakobbotsch September 30, 2026 20:43
@EgorBo

EgorBo commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

PTAL @jakobbotsch @dotnet/jit-contrib no diffs (some methods switched to fully-interruptible mode)

@EgorBo
EgorBo merged commit 12955c8 into dotnet:main Oct 1, 2026
145 of 147 checks passed
@EgorBo
EgorBo deleted the jit-fix-134894 branch October 1, 2026 14:49
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JIT: (bug) loop left partially interruptible after morph removes the stelem.ref call (GC suspension hang)

2 participants