Skip to content

[cDAC] Track no-fallback allowlist — remaining unimplemented APIs #126760

Closed

Description

@max-charlamb

Note

This issue body was updated with the assistance of GitHub Copilot.

Overview

PR #126752 introduced the cDAC no-fallback test leg (CDAC_NO_FALLBACK=1). In this mode, delegation-only APIs cannot silently fall back to the legacy DAC — only methods explicitly listed in the LegacyFallbackHelper allowlist may delegate.

This issue tracks every entry in the allowlist, why it's needed, and which PR will remove it. The goal is to reach an empty allowlist (aside from permanent entries), meaning all SOS/ClrMD APIs are fully implemented in the cDAC.

Allowlist location: src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/LegacyFallbackHelper.cs

Method Allowlist

Method Interface Reason Implementation PR
EnumMemoryRegions ICLRDataEnumMemoryRegions Dump creation — the cDAC does not implement memory enumeration Permanent
GetInterface IXCLRDataModule IMetaDataImport QI — needs managed MetadataReader wrapper #127028
IsTrackedType ISOSDacInterface11 GC heap analysis (dcd/dumpgen commands) #125895
TraverseLoaderHeap ISOSDacInterface / ISOSDacInterface13 Loader heap traversal #125129
StartEnumInstances IXCLRDataMethodDefinition Method instance enumeration — exposed after GetMethodDefinitionByToken implementation (#127091) #127104
GetName IXCLRDataMethodDefinition Method name retrieval — exposed after GetMethodDefinitionByToken implementation (#127091) #127104
SetCodeNotification IXCLRDataMethodDefinition Breakpoint code notifications — exposed after GetMethodDefinitionByToken implementation (#127091). Deferred — INotifications contract lacks JIT notification table write APIs. —
HasClassOrMethodInstantiation IXCLRDataMethodDefinition Generic method check — exposed after GetMethodDefinitionByToken implementation (#127091) #127104

File Allowlist

File Reason Tracking Issue
DacDbiImpl.cs Entire DBI/ICorDebug interface (122 methods) — the cDAC does not implement ICorDebug data access yet #126777

Completed (removed from allowlist)

Method Interface Implementation PR
GetMethodDefinitionByToken IXCLRDataModule #127091

How new entries appear

When a cDAC wrapper method is implemented (e.g., GetMethodDefinitionByToken), it may return a cDAC-managed object instead of the legacy object. Downstream methods on that object that still delegate to legacy will be blocked and must be added to the allowlist until they are also implemented.

Related Issues

Activity

  1. added
    untriaged
    on Apr 10, 2026
  2. dotnet-policy-service commented on Apr 10, 2026

    @dotnet-policy-service
    Contributor

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

  3. max-charlamb commented on Apr 10, 2026

    @max-charlamb
    Author
  4. rcj1 commented on Apr 10, 2026

    @rcj1
    Contributor

    Implement missing APIs in the cDAC contracts

    AFAIK the plan is to deprecate those that are not used.

  5. rcj1 commented on Apr 10, 2026

    @rcj1
    Contributor

    I do not see any use cases for GetExceptionStateByExceptionRecord.

  6. max-charlamb commented on Apr 10, 2026

    @max-charlamb
    Author
  7. removed
    untriaged
    on Apr 16, 2026
  8. changed the title [-][cDAC] Implement missing APIs for no-fallback mode[/-] [+][cDAC] Track no-fallback allowlist — remaining unimplemented APIs[/+] on Apr 18, 2026
  9. dotnet-policy-service commented on Apr 18, 2026

    @dotnet-policy-service
    Contributor

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

  10. added a commit that references this issue on Apr 28, 2026
    f30a847
  11. locked and limited conversation to collaborators on May 29, 2026
  12. added a commit that references this issue on Jul 15, 2026
    82e2d3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions