[Arm64] GetLargestOnDieCacheSize (dotnet/coreclr#13071)
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>
Wed, 2 Aug 2017 10:48:14 +0000 (06:48 -0400)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 2 Aug 2017 10:48:14 +0000 (12:48 +0200)
commit40f2ff895639c9b7b81012f2aefcf59eddaa04cf
treef2bb5327c17c185dfc276da08237dc0ea456f50f
parentd12ff01004ef10917ba9d7eb7a6c8d2bc2ea0195
[Arm64] GetLargestOnDieCacheSize (dotnet/coreclr#13071)

Look for cache info in /sys/.../cache/index*/size

If that fails estimate cache size based on processor count

Commit migrated from https://github.com/dotnet/coreclr/commit/bdf219c364e15cae908f9c87446ff4ae26a9fe1e
src/coreclr/src/gc/gc.cpp
src/coreclr/src/pal/src/include/pal/palinternal.h
src/coreclr/src/pal/src/misc/cgroup.cpp
src/coreclr/src/pal/src/misc/sysinfo.cpp
src/coreclr/src/vm/util.cpp