Skip to content

[cDAC] Register a ManagedTypeSource contract for NativeAOT - #129826

Merged
max-charlamb merged 1 commit into
dotnet:mainfrom
max-charlamb:cdac-nativeaot-managedtypesource
Jun 24, 2026
Merged

max-charlamb merged 1 commit into
dotnet:mainfrom
max-charlamb:cdac-nativeaot-managedtypesource

Conversation

@max-charlamb

@max-charlamb max-charlamb commented Jun 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Registers the ManagedTypeSource cDAC contract for the NativeAOT runtime by adding it to the NativeAOT data descriptor (src/coreclr/nativeaot/Runtime/datadescriptor/datadescriptor.inc).

Declare that the NativeAOT runtime supports the ManagedTypeSource cDAC contract by
adding it to the NativeAOT data descriptor. The contract and its reader
(ManagedTypeSource_1) already exist and are used by CoreCLR; the version letter is
normalized to the version number, so "n1" resolves to the same ManagedTypeSource_1
reader.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings June 24, 2026 23:29
@max-charlamb max-charlamb changed the title [cDAC] Register ManagedTypeSource contract for NativeAOT [cDAC] Register a ManagedTypeSource contract for NativeAOT Jun 24, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

@max-charlamb

Copy link
Copy Markdown
Member Author

/ba-g cDAC datadescriptor addition

@max-charlamb
max-charlamb merged commit bf62aa3 into dotnet:main Jun 24, 2026
36 of 42 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the NativeAOT cDAC data descriptor to advertise support for an additional contract (ManagedTypeSource) so diagnostics tooling can discover it via the contract descriptor.

Changes:

  • Add ManagedTypeSource to the NativeAOT contract list in datadescriptor.inc.

CDAC_GLOBAL_CONTRACT(PrecodeStubs, n1)
CDAC_GLOBAL_CONTRACT(PlatformMetadata, n1)
CDAC_GLOBAL_CONTRACT(FeatureFlags, c1)
CDAC_GLOBAL_CONTRACT(ManagedTypeSource, n1)
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 25, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
## Summary

Registers the `ManagedTypeSource` cDAC contract for the NativeAOT
runtime by adding it to the NativeAOT data descriptor
(`src/coreclr/nativeaot/Runtime/datadescriptor/datadescriptor.inc`).
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants