Skip to content

Add metadata-only runtime registration - #1522

Merged
Max Charlamb (max-charlamb) merged 1 commit into
microsoft:mainfrom
max-charlamb:max-charlamb/add-runtime-metadata
Nov 3, 2026
Merged

Max Charlamb (max-charlamb) merged 1 commit into
microsoft:mainfrom
max-charlamb:max-charlamb/add-runtime-metadata

Conversation

@max-charlamb

Copy link
Copy Markdown
Contributor

Summary

  • Add DataTarget.AddRuntime(ClrInfo) to register host-discovered metadata without requiring a host-supplied DAC interface.
  • Share locking and replacement behavior with AddLoadedRuntime, while keeping validation inline.
  • Support normal DAC activation with SkipRuntimeEnumeration = true and update API documentation.

This enables the consumer change requested in dotnet/diagnostics#6010 (comment), avoiding redundant runtime enumeration on production DataTarget instances.

Validation

  • 24 focused DataTargetTests passed, including metadata registration, replacement, validation, host-registration precedence, and legacy DAC activation with runtime enumeration disabled.
  • netstandard2.0 library build passed with no warnings or errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3c58bffd-42d4-4832-8df7-d80066a469ff
@leculver

Copy link
Copy Markdown
Contributor

Just a draft so I didn't fully review, but this design looks good to me.

@max-charlamb
Max Charlamb (max-charlamb) merged commit cba085b into microsoft:main Nov 3, 2026
4 of 10 checks passed
@max-charlamb
Max Charlamb (max-charlamb) deleted the max-charlamb/add-runtime-metadata branch November 3, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants