Skip to content

Remove obsolete DacDbi APIs and simplify RCW cached type query path#126962

Merged
rcj1 merged 3 commits intomainfrom
copilot/remove-dacdbi-api-methods
Apr 16, 2026
Merged

Remove obsolete DacDbi APIs and simplify RCW cached type query path#126962
rcj1 merged 3 commits intomainfrom
copilot/remove-dacdbi-api-methods

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

No description provided.

Copilot AI requested review from Copilot and removed request for Copilot April 15, 2026 18:02
@rcj1 rcj1 added the NO-REVIEW Experimental/testing PR, do NOT review it label Apr 15, 2026
Copilot finished work on behalf of rcj1 April 15, 2026 18:04
Copilot AI requested a review from rcj1 April 15, 2026 18:04
@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.

@rcj1 rcj1 added NO-REVIEW Experimental/testing PR, do NOT review it and removed NO-REVIEW Experimental/testing PR, do NOT review it labels Apr 15, 2026
Copilot AI requested review from Copilot and removed request for Copilot April 15, 2026 18:43
Copilot finished work on behalf of rcj1 April 15, 2026 18:45
@rcj1 rcj1 removed the NO-REVIEW Experimental/testing PR, do NOT review it label Apr 15, 2026
@rcj1 rcj1 marked this pull request as ready for review April 15, 2026 19:35
@rcj1 rcj1 requested review from Copilot and noahfalk April 15, 2026 19:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes obsolete IDacDbiInterface APIs (NGEN / ReJit / legacy RCW interface type enumeration) and simplifies the RCW cached interface type query path to avoid unnecessary DAC calls.

Changes:

  • Deleted several unused/obsolete IDacDbiInterface methods across the IDL, native headers, native implementation, and managed COM interop surface.
  • Simplified CordbObjectValue::GetCachedInterfaceTypes to directly return an empty enumerator (matching prior “always empty” behavior).
  • Removed a now-obsolete test that validated EnableNGENPolicy returning E_NOTIMPL.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/native/managed/cdac/tests/DumpTests/DacDbi/DacDbiAppDomainDumpTests.cs Removes the EnableNGENPolicy test now that the API is deleted.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/Dbi/IDacDbiInterface.cs Drops obsolete methods from the managed COM interop interface.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/Dbi/DacDbiImpl.cs Removes obsolete wrapper methods corresponding to deleted interface entries.
src/coreclr/inc/dacdbi.idl Removes obsolete methods from the COM IDL surface.
src/coreclr/debug/inc/dacdbiinterface.h Removes obsolete methods from the native interface definition.
src/coreclr/debug/di/process.cpp Simplifies GetDesiredNGENCompilerFlags to return CORDBG_E_NGEN_NOT_SUPPORTED directly.
src/coreclr/debug/di/divalue.cpp Removes DAC-based RCW interface type enumeration; returns an empty type enumerator.
src/coreclr/debug/daccess/dacdbiimpl.h Removes obsolete method declarations from DacDbiInterfaceImpl.
src/coreclr/debug/daccess/dacdbiimpl.cpp Removes obsolete method implementations from DacDbiInterfaceImpl.

Comment thread src/coreclr/debug/di/divalue.cpp Outdated
Copilot AI review requested due to automatic review settings April 15, 2026 19:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comment thread src/coreclr/inc/dacdbi.idl
@rcj1
Copy link
Copy Markdown
Contributor

rcj1 commented Apr 16, 2026

/ba-g unrelated wasm failures

@rcj1 rcj1 merged commit 75d3e60 into main Apr 16, 2026
120 of 126 checks passed
@rcj1 rcj1 deleted the copilot/remove-dacdbi-api-methods branch April 16, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants