Skip to content

Delete CheckDbiVersion and other code and comments about dac-dbi-runtime coupling - #130020

Merged
rcj1 merged 3 commits into
dotnet:mainfrom
rcj1:remove-dbi-version
Jun 30, 2026
Merged

rcj1 merged 3 commits into
dotnet:mainfrom
rcj1:remove-dbi-version

Conversation

@rcj1

@rcj1 rcj1 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
  • Delete dead code CheckDbiVersion
  • Delete large comment about dac-dbi-runtime coupling
  • Delete other dead code

@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.

Comment thread src/coreclr/debug/daccess/daccess.cpp Resolved

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 removes legacy/dead DAC/DBI version-checking plumbing and related commentary, simplifying the DacDbi surface by dropping an unused CheckDbiVersion entrypoint and its associated DbiVersion structure across managed projections and native interface definitions.

Changes:

  • Removes DbiVersion and CheckDbiVersion from the managed cDAC legacy projection and its implementation wrapper.
  • Removes CheckDbiVersion and DbiVersion from the native DAC/DBI interface (IDL + headers) and deletes the DAC-side stub implementation.
  • Removes the no-op ClrDataAccess::VerifyDlls path and deletes a large historical comment block describing DBI/DAC/runtime coupling/version checks.
Show a summary per file
File Description
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/Dbi/IDacDbiInterface.cs Drops DbiVersion and removes CheckDbiVersion from the managed projection of IDacDbiInterface.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/Dbi/DacDbiImpl.cs Removes the legacy fallback wrapper for CheckDbiVersion.
src/coreclr/inc/dacdbi.idl Removes the CheckDbiVersion method and DbiVersion forward declaration from the IDL definition.
src/coreclr/debug/inc/dacdbistructures.h Removes the DbiVersion structure and breaking-change counter constant.
src/coreclr/debug/inc/dacdbiinterface.h Removes the CheckDbiVersion method declaration and related format constant/commentary.
src/coreclr/debug/di/process.cpp Deletes the large #DBIVersionChecking comment block.
src/coreclr/debug/daccess/dacimpl.h Removes the VerifyDlls declaration from ClrDataAccess.
src/coreclr/debug/daccess/dacdbiimpl.h Removes the CheckDbiVersion declaration from DacDbiInterfaceImpl.
src/coreclr/debug/daccess/dacdbiimpl.cpp Removes the DacDbiInterfaceImpl::CheckDbiVersion implementation.
src/coreclr/debug/daccess/daccess.cpp Removes the VerifyDlls call and the stubbed VerifyDlls implementation; trims related commentary.

Copilot's findings

  • Files reviewed: 10/10 changed files
  • Comments generated: 2

Comment thread src/coreclr/debug/daccess/daccess.cpp Resolved
Comment thread src/coreclr/debug/daccess/daccess.cpp Resolved
Copilot AI review requested due to automatic review settings June 30, 2026 05:26

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.

Copilot's findings

  • Files reviewed: 10/10 changed files
  • Comments generated: 0 new

@rcj1
rcj1 merged commit 22af16a into dotnet:main Jun 30, 2026
139 checks passed
@rcj1
rcj1 deleted the remove-dbi-version branch June 30, 2026 14:15
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 30, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
…ime coupling (#130020)

* Delete dead code CheckDbiVersion
* Delete large comment about dac-dbi-runtime coupling
* Delete other dead code
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 31, 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