Repository navigation
[cDAC] Implement cDAC TraverseVirtCallStubHeap - #127296
Conversation
TraverseVirtCallStubHeap in SOSDacImpl with Loader_1 parityTraverseVirtCallStubHeap in SOSDacImpl
There was a problem hiding this comment.
Pull request overview
Implements cDAC support for ISOSDacInterface.TraverseVirtCallStubHeap in SOSDacImpl, aligning behavior with the native DAC by traversing VirtualCallStubManager loader heaps (Indcell / CacheEntry) via the loader contract, and adds unit tests for the new behavior.
Changes:
- Added
VCSHeapTypeenum and updatedISOSDacInterface.TraverseVirtCallStubHeapsignature to use the enum and a typed unmanaged callback. - Implemented
TraverseVirtCallStubHeapinSOSDacImplusingILoader.GetGlobalLoaderAllocator()+GetLoaderAllocatorHeaps(...)and reusingTraverseLoaderHeapCore(...). - Added Loader contract-based unit tests covering traversal, missing manager, invalid heap type, and invalid argument scenarios.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/native/managed/cdac/tests/LoaderTests.cs |
Adds unit tests for TraverseVirtCallStubHeap behavior using a mocked ILoader contract. |
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/SOSDacImpl.cs |
Implements TraverseVirtCallStubHeap and refactors TraverseLoaderHeapCore to take a TargetPointer. |
src/native/managed/cdac/Microsoft.Diagnostics.DataContractReader.Legacy/ISOSDacInterface.cs |
Introduces VCSHeapType and updates the COM interface method signature accordingly. |
|
Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag |
TraverseVirtCallStubHeap in SOSDacImplTraverseVirtCallStubHeap
max-charlamb
left a comment
There was a problem hiding this comment.
A few nit-level suggestions — logic is correct, these are polish items. LGTM once addressed or deferred.
|
@copilot please address the feedback |
Addressed the requested feedback in follow-up commits |
TraverseVirtCallStubHeapTraverseVirtCallStubHeap and address review polish
TraverseVirtCallStubHeap and address review polishTraverseVirtCallStubHeap
Adding
TraverseVirtCallStubHeapSOS API, using the sameTraverseLoaderHeapCoreloader heap traversal structure added for theTraverseLoaderHeapAPIs.