[ASan] Re-structure the allocator code. NFC.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 17 Dec 2014 01:55:03 +0000 (01:55 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 17 Dec 2014 01:55:03 +0000 (01:55 +0000)
commitb2dcac0bb73d017febe9d911ea1640dd3ed0f1c5
tree0856836d7b271f9cb9f16faf0a318f022ba37ec0
parent65c52ae8ca180cf54094cb78045e18ba82aec46e
[ASan] Re-structure the allocator code. NFC.

Introduce "Allocator" object, which contains all the bits and pieces
ASan allocation machinery actually use: allocator from sanitizer_common,
quarantine, fallback allocator and quarantine caches, fallback mutex.

This step is a preparation to adding more state to this object. We want
to reduce dependency of Allocator on commandline flags and be able to
"safely" modify its behavior (such as the size of the redzone) at
runtime.

llvm-svn: 224406
compiler-rt/lib/asan/asan_allocator.cc
compiler-rt/lib/asan/asan_allocator.h