diff options
author | Tom Deseyn <tom.deseyn@gmail.com> | 2018-01-29 21:11:10 +0100 |
---|---|---|
committer | Maoni Stephens <Maoni0@users.noreply.github.com> | 2018-01-29 12:11:10 -0800 |
commit | cb73944d6d159bd02adc29f0588b97f0f76da1a1 (patch) | |
tree | 9c4f406b9d5bf886c64fceb19213c25176e988cd /src/gc/env | |
parent | 850a5bea5b8c317250f7f7ef85152d92468382b0 (diff) | |
download | coreclr-cb73944d6d159bd02adc29f0588b97f0f76da1a1.tar.gz coreclr-cb73944d6d159bd02adc29f0588b97f0f76da1a1.tar.bz2 coreclr-cb73944d6d159bd02adc29f0588b97f0f76da1a1.zip |
Perform PhysicalMemoryLimit check for workstation GC, refactor GetLargestOnDieCacheSize into GetCacheSizePerLogicalCpu (#15975)
* refactor: combine GetLargestOnDieCacheSize and GetLogicalCpuCount in GetCacheSizePerLogicalCpu
* Perform PhysicalMemoryLimit check also for workstation GC
Diffstat (limited to 'src/gc/env')
-rw-r--r-- | src/gc/env/gcenv.os.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gc/env/gcenv.os.h b/src/gc/env/gcenv.os.h index 1707f0dabe..41e46f8f0f 100644 --- a/src/gc/env/gcenv.os.h +++ b/src/gc/env/gcenv.os.h @@ -282,16 +282,13 @@ public: // Processor topology // - // Get number of logical processors - static uint32_t GetLogicalCpuCount(); - - // Get size of the largest cache on the processor die + // Get size of the on die cache per logical processor // Parameters: // trueSize - true to return true cache size, false to return scaled up size based on // the processor architecture // Return: // Size of the cache - static size_t GetLargestOnDieCacheSize(bool trueSize = true); + static size_t GetCacheSizePerLogicalCpu(bool trueSize = true); // Get number of processors assigned to the current process // Return: |