Skip to content

[cDAC] Implement GetCurrentAppDomain on IXCLRDataTask#124996

Merged
barosiak merged 8 commits intodotnet:mainfrom
barosiak:barosiak/GetCurrentAppDomain
Mar 5, 2026
Merged

[cDAC] Implement GetCurrentAppDomain on IXCLRDataTask#124996
barosiak merged 8 commits intodotnet:mainfrom
barosiak:barosiak/GetCurrentAppDomain

Conversation

@barosiak
Copy link
Member

@barosiak barosiak commented Feb 28, 2026

Implement GetCurrentAppDomain for cDAC

Copilot AI review requested due to automatic review settings February 28, 2026 01:04
@dotnet-policy-service
Copy link
Contributor

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

@barosiak barosiak marked this pull request as ready for review February 28, 2026 01:07
Copy link
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 IXCLRDataTask.GetCurrentAppDomain for cDAC by introducing an IXCLRDataAppDomain COM interface and a managed wrapper, plus associated signature tighten-ups and a unit test.

Changes:

  • Add IXCLRDataAppDomain COM interface and ClrDataAppDomain wrapper type.
  • Implement ClrDataTask.GetCurrentAppDomain by reading the AppDomain global and returning a ClrDataAppDomain.
  • Update several IXCLRData* signatures to use IXCLRDataAppDomain*/IXCLRDataAppDomain** instead of void*/void**, and add a test validating the new API path.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/native/managed/cdac/tests/ClrDataTaskTests.cs Adds coverage for GetCurrentAppDomain returning an AppDomain object.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/SOSDacImpl.IXCLRDataProcess.cs Updates process interface method signatures to typed IXCLRDataAppDomain*/**.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/IXCLRData.cs Introduces IXCLRDataAppDomain and updates related interface signatures, including GetCurrentAppDomain.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/ClrDataTask.cs Implements GetCurrentAppDomain using cDAC globals, with DEBUG parity assert vs legacy DAC.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/ClrDataModule.cs Updates module interface method signatures to typed IXCLRDataAppDomain*/**.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/ClrDataFrame.cs Adjusts GetAppDomain parameter annotation to clarify AppDomain type.
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/ClrDataAppDomain.cs Adds ClrDataAppDomain COM class wrapper (currently legacy-forwarding).

@barosiak barosiak marked this pull request as draft February 28, 2026 01:47
@barosiak barosiak marked this pull request as draft February 28, 2026 01:47
@barosiak barosiak changed the title Implement GetCurrentAppDomain for cDAC [cDAC] Implement GetCurrentAppDomain on IXCLRDataTask Mar 2, 2026
Copy link
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 7 out of 7 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings March 3, 2026 21:36
Copy link
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 7 out of 7 changed files in this pull request and generated 1 comment.


You can also share your feedback on Copilot code review. Take the survey.

Copilot AI review requested due to automatic review settings March 5, 2026 01:12
Copy link
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 2 comments.


You can also share your feedback on Copilot code review. Take the survey.

@barosiak barosiak merged commit 57b4485 into dotnet:main Mar 5, 2026
50 of 52 checks passed
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.

3 participants