Skip to content

JIT: Don't assert when printing open generic method names in disasm - #135946

Merged
EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:jit-eeprintmethod-undef-type
Oct 16, 2026
Merged

EgorBo merged 1 commit into
dotnet:mainfrom
EgorBo:jit-eeprintmethod-undef-type

Conversation

@EgorBo

@EgorBo EgorBo commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Fixes a failure jit-diff runs into for FSharp.Core.dll

A Checked JIT asserts while printing the disasm comment for an open generic method (e.g. ldtoken of a generic method definition), because its signature contains CORINFO_TYPE_UNDEF types. This made jit-diff --pmi fail on FSharp.Core.

eePrintMethod and eeGetMethodFullName now tolerate CORINFO_TYPE_UNDEF and print it as <UNDEF>.

JitDisasm asserts in a Checked JIT when a comment refers to an open generic method (e.g. ldtoken of a generic method definition), because its signature has CORINFO_TYPE_UNDEF types. This made jit-diff --pmi fail on FSharp.Core. Print such types as <UNDEF> instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 79db3824-0fe6-40d8-b876-b1726372e73f
@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 Oct 16, 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 commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

/ba-g infra issues, merging to fix jit-diffs

@EgorBo
EgorBo enabled auto-merge (squash) October 16, 2026 18:21
@EgorBo
EgorBo merged commit 883f4f5 into dotnet:main Oct 16, 2026
130 of 132 checks passed
@EgorBo
EgorBo deleted the jit-eeprintmethod-undef-type branch October 16, 2026 18:23
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 19, 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.

2 participants