[scudo][standalone] 32-bit improvement
authorKostya Kortchinsky <kostyak@google.com>
Thu, 6 Feb 2020 23:46:05 +0000 (15:46 -0800)
committerKostya Kortchinsky <kostyak@google.com>
Fri, 7 Feb 2020 19:16:48 +0000 (11:16 -0800)
commitfe6e77f6fb9176ae09e1528ff46cb9c3588920a7
treebaaade169fd3b7b87565c89977dcc67491a6a5c8
parent609a489e052e8ed2731aebbcc7828de1102e871d
[scudo][standalone] 32-bit improvement

Summary:
This tweaks some behaviors of the allocator wrt 32-bit, notably
tailoring the size-class map.

I had to remove a `printStats` from `__scudo_print_stats` since when
within Bionic they share the same slot so they can't coexist at the
same time. I have to find a solution for that later, but right now we
are not using the Svelte configuration.

Reviewers: rengolin

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D74178
compiler-rt/lib/scudo/standalone/primary32.h
compiler-rt/lib/scudo/standalone/size_class_map.h
compiler-rt/lib/scudo/standalone/wrappers_c_bionic.cpp