Introduce `AddressSpaceView` template parameter to `CombinedAllocator`.
authorDan Liew <dan@su-root.co.uk>
Fri, 21 Dec 2018 21:22:27 +0000 (21:22 +0000)
committerDan Liew <dan@su-root.co.uk>
Fri, 21 Dec 2018 21:22:27 +0000 (21:22 +0000)
commit14e0d9ed89ac50b885ef6419aa3128090d85fe3c
tree66aa7324677b3f044c1b433004ff2b3b9fa1d56c
parent62ec024d3bc7a5788aa982b5b9d1ea4455598b53
Introduce `AddressSpaceView` template parameter to `CombinedAllocator`.

Summary:
This is a follow up to https://reviews.llvm.org/D55764 .

For the ASan and LSan allocatorsthe type declarations have been modified
so that it's possible to create a combined allocator type that
consistently uses a different type of `AddressSpaceView`. We intend to
use this in future patches. For the other sanitizers they just use
`LocalAddressSpaceView` by default because we have no plans to use these
allocators in an out-of-process manner.

rdar://problem/45284065

Reviewers: kcc, dvyukov, vitalybuka, cryptoad, eugenis, kubamracek, george.karpenkov, yln

Subscribers: #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D55766

llvm-svn: 349957
compiler-rt/lib/asan/asan_allocator.h
compiler-rt/lib/lsan/lsan_allocator.cc
compiler-rt/lib/lsan/lsan_allocator.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator_secondary.h