From 6d04246a1b1905d3e21bb359ce7195f74617d2ef Mon Sep 17 00:00:00 2001 From: David Mason Date: Wed, 17 Jun 2020 13:42:35 -0700 Subject: [PATCH] Update src/coreclr/src/gc/gcinterface.dac.h Co-authored-by: Noah Falk --- src/coreclr/src/gc/gcinterface.dac.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/coreclr/src/gc/gcinterface.dac.h b/src/coreclr/src/gc/gcinterface.dac.h index 0af0d42..aa99d61 100644 --- a/src/coreclr/src/gc/gcinterface.dac.h +++ b/src/coreclr/src/gc/gcinterface.dac.h @@ -19,7 +19,11 @@ #define MAX_GLOBAL_GC_MECHANISMS_COUNT 6 // The number of generations is hardcoded in to the dac APIS (DacpGcHeapDetails hard codes the size of its arrays) -// this cannot change +// The number of generations is hardcoded into some older dac APIS (for example DacpGcHeapDetails hard codes the size of its arrays) +// This value cannot change and should not be used in new DAC APIs. New APIs can query GcDacVars.total_generation_count +// variable which is dynamically initialized at runtime + + #define NUMBERGENERATIONS 4 #define INITIAL_HANDLE_TABLE_ARRAY_SIZE 10 #define HANDLE_MAX_INTERNAL_TYPES 12 -- 2.7.4