[all-commits] [llvm/llvm-project] aff734: tsan: increase dense slab alloc capacity

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Wed Apr 28 22:35:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aff73487c986b519aac1e0b7fee6d7bef72e4002
      https://github.com/llvm/llvm-project/commit/aff73487c986b519aac1e0b7fee6d7bef72e4002
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-04-29 (Thu, 29 Apr 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_clock.h
    M compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
    M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
    M compiler-rt/lib/tsan/rtl/tsan_sync.cpp
    M compiler-rt/lib/tsan/rtl/tsan_sync.h
    M compiler-rt/lib/tsan/tests/unit/CMakeLists.txt
    M compiler-rt/lib/tsan/tests/unit/tsan_dense_alloc_test.cpp

  Log Message:
  -----------
  tsan: increase dense slab alloc capacity

We've got a user report about heap block allocator overflow.
Bump the L1 capacity of all dense slab allocators to maximum
and be careful to not page the whole L1 array in from .bss.
If OS uses huge pages, this still may cause a limited RSS increase
due to boundary huge pages, but avoiding that looks hard.

Reviewed By: vitalybuka

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




More information about the All-commits mailing list