tsan: increase app mappings for aarch64 48-bit
authorThurston Dang <thurston@google.com>
Tue, 3 Jan 2023 21:47:51 +0000 (21:47 +0000)
committerThurston Dang <thurston@google.com>
Mon, 9 Jan 2023 18:45:43 +0000 (18:45 +0000)
commitdf3af581e711116ac6d9473251f346d335e97e53
tree8cd06144802bb429ab99b4a22792048f4028bcd7
parent1d6243db90b09c61d78a14268bb88a73792b63ab
tsan: increase app mappings for aarch64 48-bit

Currently, tsan's memory mappings include 4GB
for high app, 20GB for mid app, and 8GB for low
app. The high app and mid app mappings are
too small for large programs, especially if ASLR
entropy (mmap_rnd_bits) is set higher. The low app
region (for non-PIE) is too small for some of tcmalloc's
internal tests (this does not affect normal apps,
since tsan will replace malloc).

This CL increases the memory mappings to 4TB for
high app, 1.3TB for mid app, and 10TB for low app. Note
that tsan's 44-bit pointer compression/decompression imposes
a 16TB limit on the combined size of the app mappings, making
this set of mappings more or less maximal.

Differential Revision: https://reviews.llvm.org/D140923
compiler-rt/lib/tsan/rtl/tsan_platform.h