summaryrefslogtreecommitdiff
path: root/src/gc/gccommon.cpp
diff options
context:
space:
mode:
authorSean Gillespie <segilles@microsoft.com>2017-06-01 10:17:35 -0700
committerSean Gillespie <segilles@microsoft.com>2017-06-01 10:22:06 -0700
commit77eb339752afa774655d88121f4d8f5de05f6d0a (patch)
treec5c7d5e383cda13e29accbb86d620d69749973e7 /src/gc/gccommon.cpp
parent0834425813497593ceda8bb0ae12dcc463011d7c (diff)
downloadcoreclr-77eb339752afa774655d88121f4d8f5de05f6d0a.tar.gz
coreclr-77eb339752afa774655d88121f4d8f5de05f6d0a.tar.bz2
coreclr-77eb339752afa774655d88121f4d8f5de05f6d0a.zip
[Local GC] Remove uses of g_SystemInfo from the GC (#11628)
* [Local GC] Don't use g_SystemInfo to infer the number of processors * [Local GC] Avoid using g_SystemInfo.dwAllocationGranularity from within the GC. In a few places, the GC aligns the size of a request memory reservation to the allocation granularity before calling GCToOSInterface::VirtualReserve. Upon inspection, this isn't necessary. * [Local GC] Remove uses of g_SystemInfo from the handle table * Add new API on GCToOSInterface for querying the total number of procs on the machine
Diffstat (limited to 'src/gc/gccommon.cpp')
-rw-r--r--src/gc/gccommon.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gc/gccommon.cpp b/src/gc/gccommon.cpp
index 1e5383843b..932f4a2c33 100644
--- a/src/gc/gccommon.cpp
+++ b/src/gc/gccommon.cpp
@@ -44,6 +44,7 @@ uint8_t* g_gc_highest_address = 0;
GCHeapType g_gc_heap_type = GC_HEAP_INVALID;
uint32_t g_max_generation = max_generation;
MethodTable* g_gc_pFreeObjectMethodTable = nullptr;
+uint32_t g_num_processors = 0;
#ifdef GC_CONFIG_DRIVEN
void record_global_mechanism (int mech_index)