Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix off by 1 error, DacpGcHeapDetails has an array of size 7 (DAC_NUM…
…BERGENERATIONS + 3) but the runtime only returns 6 items.
  • Loading branch information
davmason committed Jun 17, 2020
commit 8c8b69fe951eb3a823769c132f91d289ea1cec7b
4 changes: 3 additions & 1 deletion src/SOS/Strike/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ class GCHeapDetails
_ASSERTE(hr != S_FALSE);

// We couldn't get any data from the newer APIs, so fall back to the original data
memcpy(data, &(heap.finalization_fill_pointers), sizeof(CLRDATA_ADDRESS) * (DAC_NUMBERGENERATIONS + 3));
memcpy(data, &(heap.finalization_fill_pointers), sizeof(CLRDATA_ADDRESS) * (DAC_NUMBERGENERATIONS + 2));
}
}

Expand All @@ -430,11 +430,13 @@ class GCHeapDetails
if (generation_table != NULL)
{
delete[] generation_table;
generation_table = NULL;
}

if (finalization_fill_pointers != NULL)
{
delete[] finalization_fill_pointers;
finalization_fill_pointers = NULL;
}
}

Expand Down