Skip to content

Adding GetAppDomainData cDAC API - #117827

Merged
rcj1 merged 15 commits into
dotnet:mainfrom
rcj1:GetAppDomainData
Jul 24, 2025
Merged

rcj1 merged 15 commits into
dotnet:mainfrom
rcj1:GetAppDomainData

Conversation

@rcj1

@rcj1 rcj1 commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 18, 2025 17:21

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 adds the GetAppDomainData cDAC API implementation, providing a new contract-based approach for retrieving application domain information. The implementation exposes app domain stage, assembly counts, heap information, and other critical metadata through the data contract reader.

  • Added SystemDomain and enhanced LoaderAllocator data contracts with heap field mappings
  • Implemented GetAppDomainData method in SOSDacImpl with comprehensive validation against legacy implementation
  • Extended ILoader contract with new methods for retrieving domain stage, activity status, and heap allocators

Reviewed Changes

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

Show a summary per file
File Description
SOSDacImpl.cs Added complete GetAppDomainData implementation with DEBUG validation against legacy DAC
ISOSDacInterface.cs Added DacpAppDomainData struct definition
SystemDomain.cs New data contract class for SystemDomain with GlobalLoaderAllocator field
LoaderAllocator.cs Added heap pointer fields (HighFrequency, LowFrequency, Stub)
AppDomain.cs Added Stage field for lifecycle tracking
Loader_1.cs Implemented new ILoader methods and DacpAppDomainDataStage enum
Constants.cs Added DefaultADID global constant
DataType.cs Added SystemDomain data type
ILoader.cs Extended interface with stage, activity, and heap allocator methods
loaderallocator.hpp Added cdac_data template specialization for heap fields
appdomain.hpp Updated Stage enum type and added cdac_data fields
datadescriptor.h Added CDAC type and field definitions for new contracts
Loader.md Updated documentation with new API methods and data structures

@rcj1 rcj1 mentioned this pull request Jul 18, 2025
31 of 32 tasks
Comment thread docs/design/datacontracts/Loader.md Resolved
@rcj1
rcj1 marked this pull request as draft July 20, 2025 20:43
@rcj1
rcj1 marked this pull request as ready for review July 21, 2025 03:57
Comment thread docs/design/datacontracts/Loader.md Resolved
Comment thread docs/design/datacontracts/Loader.md Resolved
Comment thread docs/design/datacontracts/Loader.md Resolved
Comment thread docs/design/datacontracts/Loader.md Resolved

@max-charlamb max-charlamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm. good work 👍

@rcj1
rcj1 merged commit b20632e into dotnet:main Jul 24, 2025
@rcj1
rcj1 deleted the GetAppDomainData branch July 24, 2025 23:33
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 24, 2025
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.

4 participants