[all-commits] [llvm/llvm-project] afd170: [sanitizer] Consolidate some LowLevelAllocators to...

PiJoules via All-commits all-commits at lists.llvm.org
Mon Aug 28 16:13:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: afd170bdd983006b281e7b3d5a2d4571d3e36352
      https://github.com/llvm/llvm-project/commit/afd170bdd983006b281e7b3d5a2d4571d3e36352
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M compiler-rt/lib/asan/asan_globals.cpp
    M compiler-rt/lib/asan/asan_thread.cpp
    M compiler-rt/lib/msan/msan.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_allocator.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_common.h
    M compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.h
    M compiler-rt/lib/sanitizer_common/sanitizer_flags.cpp

  Log Message:
  -----------
  [sanitizer] Consolidate some LowLevelAllocators to one

This removes and replaces usage of a few LowLevelAllocators with a single one
provided by sanitizer_common. Functionally, there should be no difference
between using different allocators vs the same one. This works really well
with D158783 which controls the size of each allocator mmap to significantly
reduce fragmentation.

This doesn't remove them all, mainly the ones used by asan and the flag parser.

Differential Revision: https://reviews.llvm.org/D158786




More information about the All-commits mailing list