[all-commits] [llvm/llvm-project] df3af5: tsan: increase app mappings for aarch64 48-bit

thurstond via All-commits all-commits at lists.llvm.org
Mon Jan 9 10:53:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df3af581e711116ac6d9473251f346d335e97e53
      https://github.com/llvm/llvm-project/commit/df3af581e711116ac6d9473251f346d335e97e53
  Author: Thurston Dang <thurston at google.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_platform.h

  Log Message:
  -----------
  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




More information about the All-commits mailing list