scudo: Don't memset previously released cached pages in the secondary allocator.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 4 Nov 2020 02:00:40 +0000 (18:00 -0800)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 5 Nov 2020 17:24:50 +0000 (09:24 -0800)
commitee7b629df27113c2752814efdec960042f799b03
tree5e396edee2b957d1d97c539ea0676babdcc8f89c
parent5e34877480dfcb8c3cd6f95ac0a46aca417b19bc
scudo: Don't memset previously released cached pages in the secondary allocator.

There is no need to memset released pages because they are already
zero. On db845c, before:

BM_stdlib_malloc_free_default/131072      34562 ns        34547 ns        20258 bytes_per_second=3.53345G/s

after:

BM_stdlib_malloc_free_default/131072      29618 ns        29589 ns        23485 bytes_per_second=4.12548G/s

Differential Revision: https://reviews.llvm.org/D90814
compiler-rt/lib/scudo/standalone/secondary.h