[asan] Optimize Quarantine of secondary allocations
authorVitaly Buka <vitalybuka@google.com>
Thu, 22 Jun 2023 05:44:56 +0000 (22:44 -0700)
committerVitaly Buka <vitalybuka@google.com>
Thu, 22 Jun 2023 18:24:08 +0000 (11:24 -0700)
commita0509884d904e91eb18e1bd6b1e216b470b7e970
tree5dad31051c4b0bcb306641a4fece73f81e75782e
parent17eaa55e9f717bb724d7097155296622ac72ac79
[asan] Optimize Quarantine of secondary allocations

For the secondary allocation we don't need poison and fill memory if we
skip quarantine, and we don't need to poison after quarantine. In both
cases the secondary allocator will unmap memory and unpoison the shadow
from get_allocator().Deallocate().

Depends on D153496.

Reviewed By: thurston

Differential Revision: https://reviews.llvm.org/D153497
compiler-rt/lib/asan/asan_allocator.cpp