diff options
author | Andy Hanson <anhans@microsoft.com> | 2019-07-19 00:36:19 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-07-19 00:36:19 -0700 |
commit | b05efe069ace397b0740f0bbedb393d19598cd73 (patch) | |
tree | 6623730be50def6ae2c497bda2eebc143e8e19c7 /src/vm | |
parent | 10f677611992fe2a998995f4e0cafd41f610a110 (diff) | |
download | coreclr-b05efe069ace397b0740f0bbedb393d19598cd73.tar.gz coreclr-b05efe069ace397b0740f0bbedb393d19598cd73.tar.bz2 coreclr-b05efe069ace397b0740f0bbedb393d19598cd73.zip |
Fix typo: `_TARGET_X86` -> `_TARGET_X86_` (#25788)
This typo was in #24989 so would be a new regression in 3.0.
In an x86 build, it causes us to not get the cache size correct,
leading us to use a smaller default cache size and do more GCs.
Tested with GCPerfSim and this PR reduces TotalNumberGCs by 33% using an x86 build.
Diffstat (limited to 'src/vm')
-rw-r--r-- | src/vm/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/util.cpp b/src/vm/util.cpp index da6d779f41..c8b9e9ae27 100644 --- a/src/vm/util.cpp +++ b/src/vm/util.cpp @@ -1817,7 +1817,7 @@ size_t GetCacheSizePerLogicalCpu(BOOL bTrueSize) maxSize = maxTrueSize = GetLogicalProcessorCacheSizeFromOS() ; // Returns the size of the highest level processor cache #endif -#if defined (_TARGET_X86) || defined(_TARGET_AMD64_) +#if defined (_TARGET_X86_) || defined(_TARGET_AMD64_) if (maxSize == 0) { maxSize = maxTrueSize = GetCacheSizeFromCpuId(); |