Skip to content

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Dec 11, 2025

Looks like dead code if I didn't miss anything. I only see CanonicalEntrypoint called with a single argument.

Copilot AI review requested due to automatic review settings December 11, 2025 23:07
@sbomer sbomer added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Dec 11, 2025
@dotnet-policy-service
Copy link
Contributor

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

Copy link
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 dead code related to unboxing thunk support for concrete generic methods. The ShadowConcreteUnboxingThunkNode class and its infrastructure were never actually used, as verified by checking all call sites of CanonicalEntrypoint and ShadowConcreteMethod.

Key changes:

  • Deleted the entire ShadowConcreteUnboxingThunkNode.cs file
  • Removed the isUnboxingStub parameter from CanonicalEntrypoint and ShadowConcreteMethod methods
  • Removed the _shadowConcreteUnboxingMethods cache and its initialization code

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ShadowConcreteUnboxingThunkNode.cs Deleted - entire class removed as dead code
NodeFactory.cs Simplified CanonicalEntrypoint and ShadowConcreteMethod methods by removing unused isUnboxingStub parameter; removed unused cache field

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thanks!

@sbomer sbomer merged commit 7a7baaa into dotnet:main Dec 12, 2025
94 of 98 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-NativeAOT-coreclr NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants