Skip to content

Fix JIT assert - clamp call-arg counts to the same limit as total reference counts. - #138559

Open
rcj1 wants to merge 1 commit into
dotnet:mainfrom
rcj1:fix-137635
Open

rcj1 wants to merge 1 commit into
dotnet:mainfrom
rcj1:fix-137635

Conversation

@rcj1

@rcj1 rcj1 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #137635

Prevents the JIT assertion and unsigned underflow when subtracting call from total appearances in promotion heuristic.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d8ce98fa-0d5a-4f6c-ba2f-76e8cd8e2cb5
@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 Nov 30, 2026
@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.

@rcj1
rcj1 requested a review from dhartglassMSFT December 1, 2026 00:23

This branch has not been deployed

No deployments
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) Checked assert totalAppearances >= callAppearances in fgRetypeImplicitByRefArgs for implicit-byref param with >= 65536 call-argument uses

1 participant