Skip to content

Implement cDAC-backed DacDbi GetObjectForCCW and IsRcw + dump integration coverage#126963

Merged
rcj1 merged 12 commits intomainfrom
copilot/implement-dacdbi-getobjectforccw-isrcw
Apr 24, 2026
Merged

Implement cDAC-backed DacDbi GetObjectForCCW and IsRcw + dump integration coverage#126963
rcj1 merged 12 commits intomainfrom
copilot/implement-dacdbi-getobjectforccw-isrcw

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

Implement DacDbi APIs GetObjectForCCW and IsRcw based on existing cDAC contracts

…9fb-4c74-a840-d9c748b9f2a3

Co-authored-by: rcj1 <77995559+rcj1@users.noreply.github.com>

Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/3366f85c-89fb-4c74-a840-d9c748b9f2a3

Co-authored-by: rcj1 <77995559+rcj1@users.noreply.github.com>

Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/3366f85c-89fb-4c74-a840-d9c748b9f2a3

Co-authored-by: rcj1 <77995559+rcj1@users.noreply.github.com>

add interop APIs
Copilot AI review requested due to automatic review settings April 15, 2026 18:31
Copilot AI review requested due to automatic review settings April 15, 2026 18:31
@rcj1 rcj1 changed the title Implement cDAC-backed DacDbi GetObjectForCCW and IsRcw + Windows dump integration coverage Implement cDAC-backed DacDbi GetObjectForCCW and IsRcw + dump integration coverage Apr 15, 2026
Copilot AI review requested due to automatic review settings April 15, 2026 19:16
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

Implements missing DacDbiImpl COM-related APIs (GetObjectForCCW, IsRcw) on the cDAC-backed path and adds Windows-focused dump integration tests to validate COM interop scenarios (BuiltIn COM + ComWrappers) against real dumps.

Changes:

  • Implement DacDbiImpl.GetObjectForCCW using ComWrappers-first resolution with BuiltIn COM fallback.
  • Implement DacDbiImpl.IsRcw using IObject.GetBuiltInComData(...) RCW presence.
  • Add dump-based integration tests for CCW → managed object handle (BuiltIn COM + ComWrappers) and RCW classification.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/Dbi/DacDbiImpl.cs Adds cDAC-backed implementations for GetObjectForCCW and IsRcw, with DEBUG cross-validation vs legacy DAC.
src/native/managed/cdac/tests/DumpTests/DacDbi/DacDbiCCWDumpTests.cs Adds Windows-only dump test validating BuiltIn COM CCW/interface-pointer → object-handle resolution.
src/native/managed/cdac/tests/DumpTests/DacDbi/DacDbiComWrappersDumpTests.cs Adds dump test validating ComWrappers identity-pointer → managed object wrapper handle resolution.
src/native/managed/cdac/tests/DumpTests/DacDbi/DacDbiRCWDumpTests.cs Adds Windows-only dump tests validating IsRcw returns true for RCWs and false for non-RCWs.

Copilot AI review requested due to automatic review settings April 16, 2026 00:42
@rcj1 rcj1 marked this pull request as ready for review April 16, 2026 00:42
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 4 out of 4 changed files in this pull request and generated 1 comment.

Copy link
Copy Markdown
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

LGTM

Adding @jkoritzinsky for all things COM :)

Copy link
Copy Markdown
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

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

The comment from Copilot concerns me. Other than that, looks good!

Copilot AI review requested due to automatic review settings April 16, 2026 05:17
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 4 out of 4 changed files in this pull request and generated 2 comments.

@dotnet-policy-service dotnet-policy-service Bot added the linkable-framework Issues associated with delivering a linker friendly framework label Apr 17, 2026
@rcj1 rcj1 removed the linkable-framework Issues associated with delivering a linker friendly framework label Apr 17, 2026
Copilot finished work on behalf of rcj1 April 17, 2026 18:39
Copilot AI review requested due to automatic review settings April 23, 2026 17:29
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 4 out of 4 changed files in this pull request and generated 3 comments.

@github-actions

This comment has been minimized.

@github-actions

This comment was marked as outdated.

Copilot AI review requested due to automatic review settings April 23, 2026 21:58
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 5 out of 5 changed files in this pull request and generated no new comments.

@rcj1 rcj1 merged commit 8768b4f into main Apr 24, 2026
59 checks passed
@rcj1 rcj1 deleted the copilot/implement-dacdbi-getobjectforccw-isrcw branch April 24, 2026 01:13
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.

6 participants