RETAIL_CONFIG_DWORD_INFO_DIRECT_ACCESS(EXTERNAL_GCHeapHardLimit, W("GCHeapHardLimit"), "Specifies the maximum commit size for the GC heap")
RETAIL_CONFIG_DWORD_INFO_DIRECT_ACCESS(EXTERNAL_GCHeapHardLimitPercent, W("GCHeapHardLimitPercent"), "Specifies the GC heap usage as a percentage of the total memory")
RETAIL_CONFIG_STRING_INFO(EXTERNAL_GCHeapAffinitizeRanges, W("GCHeapAffinitizeRanges"), "Specifies list of processors for Server GC threads. The format is a comma separated list of processor numbers or ranges of processor numbers. Example: 1,3,5,7-9,12")
-RETAIL_CONFIG_DWORD_INFO_DIRECT_ACCESS(EXTERNAL_GCLargePages, W("GCLargePages"), "Specifies whether large pages should be used when a heap hard limit is set")
+RETAIL_CONFIG_DWORD_INFO(EXTERNAL_GCLargePages, W("GCLargePages"), 0, "Specifies whether large pages should be used when a heap hard limit is set")
///
/// IBC
#endif
bool gcConcurrentWasForced = false;
- // The CLRConfig value for UNSUPPORTED_gcConcurrent defaults to -1, and treats any
- // positive value as 'forcing' concurrent GC to be on. Because the standard logic
- // for mapping a DWORD CLRConfig to a boolean configuration treats -1 as true (just
- // like any other nonzero value), we will explicitly check the DWORD later if this
- // check returns false.
gcConcurrentWasForced = Configuration::GetKnobBooleanValue(W("System.GC.Concurrent"), false);
int gcConcurrentConfigVal = 0;
if (!gcConcurrentWasForced)
{
+ // The CLRConfig value for UNSUPPORTED_gcConcurrent defaults to -1, and treats any
+ // positive value as 'forcing' concurrent GC to be on. Because the standard logic
+ // for mapping a DWORD CLRConfig to a boolean configuration treats -1 as true (just
+ // like any other nonzero value), we will explicitly check the DWORD later if this
+ // check returns false.
gcConcurrentConfigVal = CLRConfig::GetConfigValue(CLRConfig::UNSUPPORTED_gcConcurrent);
gcConcurrentWasForced = (gcConcurrentConfigVal > 0);
}
return true;
}
+ if (strcmp(key, "GCLargePages") == 0)
+ {
+ *value = Configuration::GetKnobBooleanValue(W("System.GC.LargePages"), CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_GCLargePages));
+ return true;
+ }
+
WCHAR configKey[MaxConfigKeyLength];
if (MultiByteToWideChar(CP_ACP, 0, key, -1 /* key is null-terminated */, configKey, MaxConfigKeyLength) == 0)
{
#endif // FEATURE_COMINTEROP
#include "gctoclreventsink.h"
+#include "configuration.h"
// the method table for the WeakReference class
extern MethodTable* pWeakReferenceMT;
#endif // FEATURE_COMINTEROP
#include "gctoclreventsink.h"
+#include "configuration.h"
// the method table for the WeakReference class
extern MethodTable* pWeakReferenceMT;