[cDAC] save datadescriptors in minidumps#121360
Merged
max-charlamb merged 7 commits intodotnet:mainfrom Dec 12, 2025
Merged
Conversation
added 2 commits
November 4, 2025 18:48
Contributor
|
Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds enumeration support for cDAC (Contract-based DAC) data descriptors in minidumps. The main purpose is to ensure that cDAC contract descriptor data structures are included in minidump memory reports, making them available for debugging.
Key changes:
- Adds a new
EnumMemDataDescriptorsmethod that enumerates the main ContractDescriptor and its subdescriptors - Integrates the new enumeration into the minidump generation workflow
- Documents the ordering requirement for subdescriptor pointers in the global structure
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/coreclr/vm/datadescriptor/datadescriptor.inc | Adds a comment documenting that subdescriptor pointers must be the last pointers in the global structure |
| src/coreclr/debug/daccess/enummem.cpp | Implements EnumMemDataDescriptors to enumerate ContractDescriptor structures and integrates it into the minidump workflow |
| src/coreclr/debug/daccess/dacimpl.h | Declares the new EnumMemDataDescriptors method |
| src/coreclr/debug/daccess/CMakeLists.txt | Adds include directory for contract-descriptor.h header |
Open
3 tasks
hoyosjs
reviewed
Nov 6, 2025
noahfalk
approved these changes
Nov 7, 2025
3 tasks
hoyosjs
approved these changes
Dec 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Saves datadescriptors json blobs in minidumps.
This enumeration algorithm is basic and hardcodes the number of sub-descriptors on the main datadescriptor. Fully recursing the subdescriptors the same way as the cDAC would require parsing the JSON blob. I believe this is fine for now and in the future, we'd move this code over to the cDAC where it is already parsed.
My biggest concern is bloating minidump file size when this won't be used in most scenarios for now.
Saving datadescriptors in Heap/Mini dumps takes around 10-15kB.