[msan] Use SizeClassAllocator64 for AArch64
authorFangrui Song <i@maskray.me>
Mon, 9 Jan 2023 19:49:08 +0000 (19:49 +0000)
committerFangrui Song <i@maskray.me>
Mon, 9 Jan 2023 19:49:08 +0000 (19:49 +0000)
commit8e0c1aaf6ba315420e8dc136da3f7abd10f5c4ed
treef229426363a4ef6b9bae4e74a26961776e2d7baa
parent01ccf7b3cee58dbe02fd97696cae1781746b6137
[msan] Use SizeClassAllocator64 for AArch64

Now that D137666 requires 48-bit VMA for AArch64, we can switch to
SizeClassAllocator64 for a slightly more efficient allocator
(asan/lsan already switched by default).

It seems that we can pick kSpaceBeg = 0xE00000000000ULL to support both Linux
("app-15") and FreeBSD ("high memory").

Reviewed By: #sanitizers, vitalybuka

Differential Revision: https://reviews.llvm.org/D140792
compiler-rt/lib/msan/msan_allocator.cpp