Skip to content

Remove dotnet/corert#3873 workarounds#128739

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fixcorert3873
May 29, 2026
Merged

Remove dotnet/corert#3873 workarounds#128739
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fixcorert3873

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

Pull request #128384 is running into this. It might be the first time in a long time that we need to do generic lookups in a non-Ecma method body.

I don't think there are legitimate reasons why we would still need to do this. CI will complain loudly if there still is something. We'll want to fix it.

Pull request dotnet#128384 is running into this. It might be the first time in a long time that we need to do generic lookups in a non-Ecma method body.

I don't think there are legitimate reasons why we would still need to do this. CI will complain loudly if there still is something. We'll want to fix it.
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes IL scanner fallbacks that previously allowed compiler-generated/non-Ecma entities to lazily build vtable slices or generic dictionary layouts during compilation. The intended effect is to make scanner misses fail explicitly instead of silently relying on legacy workarounds.

Changes:

  • Makes scanned vtable lookup require a precomputed slice for all types.
  • Makes scanned dictionary layout lookup require a precomputed layout for all type/method owners, except entities forced back to lazy lookup handling.

Comment thread src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ILScanner.cs
@MichalStrehovsky
Copy link
Copy Markdown
Member Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@MichalStrehovsky MichalStrehovsky merged commit de0162e into dotnet:main May 29, 2026
140 of 147 checks passed
@MichalStrehovsky MichalStrehovsky deleted the fixcorert3873 branch May 29, 2026 11:39
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants