Update src/coreclr/src/gc/gcinterface.dac.h
authorDavid Mason <davmason@microsoft.com>
Wed, 17 Jun 2020 20:42:35 +0000 (13:42 -0700)
committerGitHub <noreply@github.com>
Wed, 17 Jun 2020 20:42:35 +0000 (13:42 -0700)
Co-authored-by: Noah Falk <noahfalk@users.noreply.github.com>
src/coreclr/src/gc/gcinterface.dac.h

index 0af0d42..aa99d61 100644 (file)
 #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