Repository navigation
Description
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
- [cDAC] Support APIs used by SOS #117782 — [cDAC] Support APIs used by SOS
- [cDAC] Support API's used by CLRMD #124535 — [cDAC] Support APIs used by CLRMD
- Tracking implementation of DacDbi APIs #126777 — Tracking implementation of DacDbi APIs
Activity
dotnet-policy-service commentedon Apr 10, 2026
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.
max-charlamb commentedon Apr 10, 2026
rcj1 commentedon Apr 10, 2026
AFAIK the plan is to deprecate those that are not used.
rcj1 commentedon Apr 10, 2026
I do not see any use cases for GetExceptionStateByExceptionRecord.
max-charlamb commentedon Apr 10, 2026
[-][cDAC] Implement missing APIs for no-fallback mode[/-][+][cDAC] Track no-fallback allowlist — remaining unimplemented APIs[/+]dotnet-policy-service commentedon Apr 18, 2026
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.
Add cDAC JIT notification contract with lazy table allocation (#127114)
Add cDAC JIT notification contract with lazy table allocation (#127114)