Skip to content

Commit

Permalink
Make sure all heap segment fields are populated in the DAC (#77035)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung authored Oct 20, 2022
1 parent fce9117 commit a46a28e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/debug/daccess/request_svr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ HRESULT GetServerHeapData(CLRDATA_ADDRESS addr, DacpHeapSegmentData *pSegment)
pSegment->used = (CLRDATA_ADDRESS)(ULONG_PTR) pHeapSegment->used;
pSegment->mem = (CLRDATA_ADDRESS)(ULONG_PTR) (pHeapSegment->mem);
pSegment->next = (CLRDATA_ADDRESS)dac_cast<TADDR>(pHeapSegment->next);
pSegment->flags = pHeapSegment->flags;
pSegment->gc_heap = (CLRDATA_ADDRESS)pHeapSegment->heap;
pSegment->background_allocated = (CLRDATA_ADDRESS)(ULONG_PTR)pHeapSegment->background_allocated;

TADDR heapAddress = TO_TADDR(pSegment->gc_heap);
dac_gc_heap heap = LoadGcHeapData(heapAddress);
Expand Down

0 comments on commit a46a28e

Please sign in to comment.