diff options
author | Sean Gillespie <sean@swgillespie.me> | 2017-04-01 14:25:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-01 14:25:07 -0700 |
commit | ed57233f4d26114d45b1293ced80a09f879f72cf (patch) | |
tree | 19eb9884c7cd1a5f51efd5e065042e44e14b6634 /src/vm/crossgencompile.cpp | |
parent | 036ff00ad33e3bdd8f0eef7513af331eb841d5b9 (diff) | |
download | coreclr-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/crossgencompile.cpp')
-rw-r--r-- | src/vm/crossgencompile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vm/crossgencompile.cpp b/src/vm/crossgencompile.cpp index c29d3cc60b..b106ecc918 100644 --- a/src/vm/crossgencompile.cpp +++ b/src/vm/crossgencompile.cpp @@ -133,9 +133,7 @@ BOOL g_fEEComActivatedStartup=FALSE; GVAL_IMPL_INIT(DWORD, g_fHostConfig, 0); -#ifdef FEATURE_SVR_GC -SVAL_IMPL_INIT(uint32_t,IGCHeap,gcHeapType,IGCHeap::GC_HEAP_WKS); -#endif +GVAL_IMPL_INIT(GCHeapType, g_heap_type, GC_HEAP_WKS); void UpdateGCSettingFromHost() { |