[sanitizer] Switch StackStore to 8 MiB blocks
authorVitaly Buka <vitalybuka@google.com>
Fri, 19 Nov 2021 03:39:45 +0000 (19:39 -0800)
committerVitaly Buka <vitalybuka@google.com>
Fri, 26 Nov 2021 22:00:10 +0000 (14:00 -0800)
commit8ae815cb19a0ead6267651b555a008471494c55a
tree030f0345da711307e792ae9284272529e1411d0b
parent53b00b821582a95c5186bd76e7e7d12d2697a630
[sanitizer] Switch StackStore to 8 MiB blocks

Larger blocks are more convenient for compressions.
Blocks are allocated with MmapNoReserveOrDie to save some memory.

Also it's 15% faster on StackDepotBenchmarkSuite

Depends on D114464.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D114488
compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
compiler-rt/lib/sanitizer_common/sanitizer_stack_store.h
compiler-rt/test/hwasan/TestCases/Linux/decorate-proc-maps.c