Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request implements cDAC (Contract-based Data Access Component) APIs for simple ComWrappers functionality. The main purpose is to add three new cDAC APIs: GetComWrappersCCWData, IsComWrappersCCW, and IsComWrappersRCW, while also fixing a DAC bug on ARM architecture and renaming GetPrimitiveType to GetBinderType for broader use.
Key changes include:
- Implementation of three new ComWrappers cDAC APIs with full functionality
- ARM DAC bug fix by removing incorrect thumb code clearing
- Renaming and broadening the scope of type lookup functionality
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| SOSDacImpl.cs | Implements the three new ComWrappers cDAC APIs and updates method name usage |
| ManagedObjectWrapperLayout.cs | New data contract for managed object wrapper reference count |
| ManagedObjectWrapperHolderObject.cs | New data contract for managed object wrapper holder |
| SignatureTypeProvider.cs | Updates method call to use new GetBinderType name |
| RuntimeTypeSystem_1.cs | Renames GetPrimitiveType to GetBinderType for broader usage |
| ComWrappers_1.cs | Implements core ComWrappers contract functionality |
| Constants.cs | Adds global constants for ComWrappers functionality |
| DataType.cs | Adds new data types for managed object wrapper contracts |
| IRuntimeTypeSystem.cs | Updates interface to use GetBinderType instead of GetPrimitiveType |
| IComWrappers.cs | Adds new method signatures to ComWrappers interface |
| interoplibinterface_comwrappers.h | Adds cdac_data template specialization for ManagedObjectWrapperHolderObject |
| datadescriptor.inc | Adds new data type definitions and global variables |
| datadescriptor.h | Includes ComWrappers header for feature support |
| appdomain.cpp | Caches NativeObjectWrapper method table for cDAC usage |
| interoplibabi.h | Adds cdac_data template specialization for ManagedObjectWrapperLayout |
| comwrappers.hpp | Adds forward declarations for QueryInterface methods |
| request.cpp | Fixes ARM DAC bug by removing thumb code clearing |
| SignatureDecoder.md | Updates documentation to reflect GetBinderType rename |
| ComWrappers.md | Updates documentation with new API definitions and implementation details |
jkotas
reviewed
Sep 25, 2025
...e/managed/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/ComWrappers_1.cs
Outdated
Show resolved
Hide resolved
...e/managed/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/ComWrappers_1.cs
Outdated
Show resolved
Hide resolved
...ged/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/RuntimeTypeSystem_1.cs
Show resolved
Hide resolved
...e/managed/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/ComWrappers_1.cs
Show resolved
Hide resolved
...e/managed/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/ComWrappers_1.cs
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
...e/managed/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/ComWrappers_1.cs
Show resolved
Hide resolved
...ged/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/RuntimeTypeSystem_1.cs
Show resolved
Hide resolved
Member
jkoritzinsky
left a comment
There was a problem hiding this comment.
Looking good! Just one more thing and then its good!
...anaged/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Data/ComWrappersVtablePtrs.cs
Outdated
Show resolved
Hide resolved
jkoritzinsky
approved these changes
Feb 19, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/SOSDacImpl.cs
Outdated
Show resolved
Hide resolved
…er.Legacy/SOSDacImpl.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
...d/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Data/ManagedObjectWrapperLayout.cs
Show resolved
Hide resolved
.../Microsoft.Diagnostics.DataContractReader.Contracts/Data/ManagedObjectWrapperHolderObject.cs
Show resolved
Hide resolved
...anaged/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Data/ComWrappersVtablePtrs.cs
Show resolved
Hide resolved
...ged/cdac/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/RuntimeTypeSystem_1.cs
Show resolved
Hide resolved
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Uh oh!
There was an error while loading. Please reload this page.