From 613f8e7c33cc07f87be54f1f595e2724694f25ff Mon Sep 17 00:00:00 2001 From: Maoni Stephens Date: Wed, 9 Mar 2022 16:17:01 -0800 Subject: [PATCH] change the region related config names to be more reasonable (#66134) Co-authored-by: Maoni0 --- src/coreclr/gc/gc.cpp | 4 ++-- src/coreclr/gc/gcconfig.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index 14b7826..f20d24c 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -43691,7 +43691,7 @@ HRESULT GCHeap::Initialize() } #ifdef USE_REGIONS - gc_heap::regions_range = (size_t)GCConfig::GetGCRegionsRange(); + gc_heap::regions_range = (size_t)GCConfig::GetGCRegionRange(); #endif //USE_REGIONS #ifdef HOST_64BIT @@ -43942,7 +43942,7 @@ HRESULT GCHeap::Initialize() #ifdef MULTIPLE_HEAPS gc_heap::soh_segment_size /= 4; #endif //MULTIPLE_HEAPS - size_t gc_region_size = (size_t)GCConfig::GetGCRegionsSize(); + size_t gc_region_size = (size_t)GCConfig::GetGCRegionSize(); if (!power_of_two_p(gc_region_size) || ((gc_region_size * nhp * 19) > gc_heap::regions_range)) { return E_OUTOFMEMORY; diff --git a/src/coreclr/gc/gcconfig.h b/src/coreclr/gc/gcconfig.h index d727a46..63e2ded 100644 --- a/src/coreclr/gc/gcconfig.h +++ b/src/coreclr/gc/gcconfig.h @@ -103,8 +103,8 @@ public: INT_CONFIG (GCHeapHardLimit, "GCHeapHardLimit", "System.GC.HeapHardLimit", 0, "Specifies a hard limit for the GC heap") \ INT_CONFIG (GCHeapHardLimitPercent, "GCHeapHardLimitPercent", "System.GC.HeapHardLimitPercent", 0, "Specifies the GC heap usage as a percentage of the total memory") \ INT_CONFIG (GCTotalPhysicalMemory, "GCTotalPhysicalMemory", NULL, 0, "Specifies what the GC should consider to be total physical memory") \ - INT_CONFIG (GCRegionsRange, "GCRegionsRange", NULL, 274877906944L, "Specifies the range for the GC heap") \ - INT_CONFIG (GCRegionsSize, "GCRegionsSize", NULL, 4194304, "Specifies the size for a basic GC region") \ + INT_CONFIG (GCRegionRange, "GCRegionRange", NULL, 274877906944L, "Specifies the range for the GC heap") \ + INT_CONFIG (GCRegionSize, "GCRegionSize", NULL, 4194304, "Specifies the size for a basic GC region") \ STRING_CONFIG(LogFile, "GCLogFile", NULL, "Specifies the name of the GC log file") \ STRING_CONFIG(ConfigLogFile, "GCConfigLogFile", NULL, "Specifies the name of the GC config log file") \ INT_CONFIG (BGCFLTuningEnabled, "BGCFLTuningEnabled", NULL, 0, "Enables FL tuning") \ -- 2.7.4