Skip to content

Align NativeAOT descriptor preservation with ILLink - #137404

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix-nativeaot-descriptor-preservation
Nov 12, 2026
Merged

MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:fix-nativeaot-descriptor-preservation

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Native AOT was preserving more than ILLink with the justification that keeping more doesn't hurt. It can hurt, it can trigger warnings.

Preserve declared members for type descriptors and recurse into nested types only for assembly and namespace preservation. Retain interface types without preserving unrelated interface members. Add shared descriptor regression coverage.

Preserve declared members for type descriptors and recurse into nested types only for assembly and namespace preservation. Retain interface types without preserving unrelated interface members. Add shared descriptor regression coverage.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 7d5a6220-ab93-4d22-8107-c9f84da4e195
@dotnet-policy-service dotnet-policy-service Bot added linkable-framework Issues associated with delivering a linker friendly framework labels Nov 12, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 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: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

/ba-g networking, helix crash

@MichalStrehovsky
MichalStrehovsky merged commit 4c18349 into dotnet:main Nov 12, 2026
145 of 150 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the fix-nativeaot-descriptor-preservation branch November 12, 2026 22:33
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 13, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — b4142270 Deployed Nov 12, 2026 by dotnet-policy-service[bot] via conclusion #12315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-NativeAOT-coreclr linkable-framework Issues associated with delivering a linker friendly framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants