Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Robinson <arobins@microsoft.com>2021-05-25 08:42:26 +0300
committerGitHub <noreply@github.com>2021-05-25 08:42:26 +0300
commitcc8d9b33005ef617379ff9841284398414505104 (patch)
tree50a42255b6d18234788b582a421d6f74e102adb7 /src/coreclr/inc
parent7d2c493bf4f2863d1b9aab1978ec7c14926f28a1 (diff)
Parse `DOTNET_PROCESSOR_COUNT` with a 10 radix not 16 (#53208)
* Parse DOTNET_PROCESSOR_COUNT with a 10 radix not 16 * Update test for DOTNET_PROCESSOR_COUNT
Diffstat (limited to 'src/coreclr/inc')
-rw-r--r--src/coreclr/inc/clrconfig.h6
-rw-r--r--src/coreclr/inc/clrconfigvalues.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/coreclr/inc/clrconfig.h b/src/coreclr/inc/clrconfig.h
index 97a76badade..f067824d241 100644
--- a/src/coreclr/inc/clrconfig.h
+++ b/src/coreclr/inc/clrconfig.h
@@ -31,7 +31,11 @@ public:
// Remove any whitespace at beginning and end of value. (Only applicable for
// *string* configuration values.)
- TrimWhiteSpaceFromStringValue = 0x2
+ TrimWhiteSpaceFromStringValue = 0x2,
+
+ // The configuration should be parsed using a 10 radix as opposed to the
+ // default of 16.
+ ParseIntegerAsBase10 = 0x4,
};
// Struct used to store information about where/how to find a Config DWORD.
diff --git a/src/coreclr/inc/clrconfigvalues.h b/src/coreclr/inc/clrconfigvalues.h
index 8498c87adbf..5dc7e5d34b2 100644
--- a/src/coreclr/inc/clrconfigvalues.h
+++ b/src/coreclr/inc/clrconfigvalues.h
@@ -555,7 +555,7 @@ RETAIL_CONFIG_DWORD_INFO(INTERNAL_Thread_DeadThreadCountThresholdForGCTrigger, W
RETAIL_CONFIG_DWORD_INFO(INTERNAL_Thread_DeadThreadGCTriggerPeriodMilliseconds, W("Thread_DeadThreadGCTriggerPeriodMilliseconds"), 1000 * 60 * 30, "In the heuristics to clean up dead threads, this much time must have elapsed since the previous max-generation GC before triggering another GC will be considered")
RETAIL_CONFIG_DWORD_INFO(EXTERNAL_Thread_UseAllCpuGroups, W("Thread_UseAllCpuGroups"), 0, "Specifies whether to query and use CPU group information for determining the processor count.")
RETAIL_CONFIG_DWORD_INFO(EXTERNAL_Thread_AssignCpuGroups, W("Thread_AssignCpuGroups"), 1, "Specifies whether to automatically distribute threads created by the CLR across CPU Groups. Effective only when Thread_UseAllCpuGroups and GCCpuGroup are enabled.")
-RETAIL_CONFIG_DWORD_INFO(EXTERNAL_ProcessorCount, W("PROCESSOR_COUNT"), 0, "Specifies the number of processors available for the process, which is returned by Environment.ProcessorCount")
+RETAIL_CONFIG_DWORD_INFO_EX(EXTERNAL_ProcessorCount, W("PROCESSOR_COUNT"), 0, "Specifies the number of processors available for the process, which is returned by Environment.ProcessorCount", CLRConfig::LookupOptions::ParseIntegerAsBase10)
///
/// Threadpool