tsan: increase dense slab alloc capacity
authorDmitry Vyukov <dvyukov@google.com>
Fri, 23 Apr 2021 13:47:21 +0000 (15:47 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 29 Apr 2021 05:34:50 +0000 (07:34 +0200)
commitaff73487c986b519aac1e0b7fee6d7bef72e4002
treeb8dfc009ba4692443b7270715b471aa1bb6d9335
parentfc1df36e6e402cadb46befd32c4d195a4096477b
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
compiler-rt/lib/tsan/rtl/tsan_clock.h
compiler-rt/lib/tsan/rtl/tsan_dense_alloc.h
compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
compiler-rt/lib/tsan/rtl/tsan_sync.cpp
compiler-rt/lib/tsan/rtl/tsan_sync.h
compiler-rt/lib/tsan/tests/unit/CMakeLists.txt
compiler-rt/lib/tsan/tests/unit/tsan_dense_alloc_test.cpp