only use config on coreclr
authorMaoni Stephens <maonis@microsoft.com>
Tue, 5 Jul 2016 18:47:29 +0000 (11:47 -0700)
committerMaoni Stephens <maonis@microsoft.com>
Tue, 5 Jul 2016 18:47:29 +0000 (11:47 -0700)
[tfs-changeset: 1616092]

Commit migrated from https://github.com/dotnet/coreclr/commit/0881ab88c6b219aa2325543f3b180337cba3fd3c

src/coreclr/src/vm/eeconfig.cpp

index 08938c3..91b9e64 100644 (file)
@@ -975,9 +975,14 @@ HRESULT EEConfig::sync()
 #endif
 
     iGCForceCompact     =  GetConfigDWORD_DontUse_(CLRConfig::UNSUPPORTED_gcForceCompact, iGCForceCompact);
+#ifdef FEATURE_CORECLR
     iGCNoAffinitize = Configuration::GetKnobBooleanValue(W("System.GC.NoAffinitize"), 
                                                          CLRConfig::UNSUPPORTED_GCNoAffinitize);
     iGCHeapCount = Configuration::GetKnobDWORDValue(W("System.GC.HeapCount"), CLRConfig::UNSUPPORTED_GCHeapCount);
+#else
+    iGCNoAffinitize = CLRConfig::GetConfigValue(CLRConfig::UNSUPPORTED_GCNoAffinitize);
+    iGCHeapCount = CLRConfig::GetConfigValue(CLRConfig::UNSUPPORTED_GCHeapCount);
+#endif
 
     fStressLog        =  GetConfigDWORD_DontUse_(CLRConfig::UNSUPPORTED_StressLog, fStressLog) != 0;
     fForceEnc         =  GetConfigDWORD_DontUse_(CLRConfig::UNSUPPORTED_ForceEnc, fForceEnc) != 0;