Make sure all heap segment fields are populated in the DAC (#77035)
authorAndrew Au <andrewau@microsoft.com>
Thu, 20 Oct 2022 17:12:08 +0000 (10:12 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Oct 2022 17:12:08 +0000 (10:12 -0700)
src/coreclr/debug/daccess/request_svr.cpp

index 36d21ef..08051e8 100644 (file)
@@ -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);