summaryrefslogtreecommitdiff
path: root/src/vm/gcenv.ee.cpp
diff options
context:
space:
mode:
authorSean Gillespie <sean@swgillespie.me>2017-04-01 14:25:07 -0700
committerGitHub <noreply@github.com>2017-04-01 14:25:07 -0700
commited57233f4d26114d45b1293ced80a09f879f72cf (patch)
tree19eb9884c7cd1a5f51efd5e065042e44e14b6634 /src/vm/gcenv.ee.cpp
parent036ff00ad33e3bdd8f0eef7513af331eb841d5b9 (diff)
downloadcoreclr-ed57233f4d26114d45b1293ced80a09f879f72cf.tar.gz
coreclr-ed57233f4d26114d45b1293ced80a09f879f72cf.tar.bz2
coreclr-ed57233f4d26114d45b1293ced80a09f879f72cf.zip
[Local GC] Remove static fields from GC interface (#10566)
* Remove max_generation from GC interface * [Local GC] Clean up the GC interface by removing all static fields from it: 1) gcHeapType is replaced by g_heap_type (EE side) and g_gc_heap_type (GC side), each of which is set on initialization. g_heap_type is read by the DAC to determine what kind of heap is being used. 2) maxGeneration is not necessary due to the GC DAC changes. * Rebase against master * Comments and cleanup * Use a heap allocation instead of alloca * Code review feedback: remove a redundant cast and allocate generation count table once, on first use * Address code review feedback: cache some calls to GetMaxGeneration
Diffstat (limited to 'src/vm/gcenv.ee.cpp')
-rw-r--r--src/vm/gcenv.ee.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vm/gcenv.ee.cpp b/src/vm/gcenv.ee.cpp
index e8619953ff..cf2728d6cb 100644
--- a/src/vm/gcenv.ee.cpp
+++ b/src/vm/gcenv.ee.cpp
@@ -1016,6 +1016,7 @@ void GCProfileWalkHeapWorker(BOOL fProfilerPinned, BOOL fShouldWalkHeapRootsForE
{
{
ProfilingScanContext SC(fProfilerPinned);
+ unsigned max_generation = GCHeapUtilities::GetGCHeap()->GetMaxGeneration();
// **** Scan roots: Only scan roots if profiling API wants them or ETW wants them.
if (fProfilerPinned || fShouldWalkHeapRootsForEtw)