diff options
author | Andy Hanson <anhans@microsoft.com> | 2019-06-05 16:58:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-05 16:58:56 -0700 |
commit | 5d4ff2f11a87d7d434d05e72744946f48e017b11 (patch) | |
tree | 4b888de6cf6716f34e93fc40e0c0bcf352b94122 /src/pal/prebuilt | |
parent | 10df20ed3ff0208b3f16f79d5062662a8827f579 (diff) | |
download | coreclr-5d4ff2f11a87d7d434d05e72744946f48e017b11.tar.gz coreclr-5d4ff2f11a87d7d434d05e72744946f48e017b11.tar.bz2 coreclr-5d4ff2f11a87d7d434d05e72744946f48e017b11.zip |
Fix PAL_GetLogicalProcessorCacheSizeFromOS on mac (#24777)
* Fix PAL_GetLogicalProcessorCacheSizeFromOS on mac
In a previous PR
(https://github.com/dotnet/coreclr/commit/ed52a006c01a582d4d34add40c318d6f324b99ba#diff-8447e54277bb962d167a77bb260760d7R1879),
GetCacheSizePerLogicalCpu was changed to no longer rely on cpuid on
amd64 systems; instead it uses GetLogicalProcessorCacheSizeFromOS().
Unfortunately that function consisted of a number of `#if`s, none of
which were active on macs, and we just returned 0. This caused us to
default to a gen0size of only 0.25MB, causing many GCs.
Fixed by adding a new case that uses `sysctlbyname`.
Fix #24658
* Fixes from code review
* Check for function sysctlbyname instead of header
Diffstat (limited to 'src/pal/prebuilt')
0 files changed, 0 insertions, 0 deletions