[ASan] Introduce AllocatorOptions to configure allocator behavior.
authorAlexey Samsonov <vonosmas@gmail.com>
Fri, 19 Dec 2014 19:35:11 +0000 (19:35 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Fri, 19 Dec 2014 19:35:11 +0000 (19:35 +0000)
commitd6b24fa1e2fbb0ca74a4a1684ce33bca26919621
treeb4e06a96694489364ac23ddfb7808619bf75429c
parentcc09d1ccc5a10a4df692fd1450f555cd723344b8
[ASan] Introduce AllocatorOptions to configure allocator behavior.

Summary:
Reduce the dependency of allocator code on runtime flags. Instead,
pass a bunch of options that configure allocator behavior at
initialization or re-initialization. That would allow us to
cleaner modify allocator behavior during a program execution
when ASan is activated or de-activated.

Test Plan: regression test suite

Reviewers: kcc

Subscribers: llvm-commits, eugenis

Differential Revision: http://reviews.llvm.org/D6711

llvm-svn: 224605
compiler-rt/lib/asan/asan_activation.cc
compiler-rt/lib/asan/asan_allocator.cc
compiler-rt/lib/asan/asan_allocator.h
compiler-rt/lib/asan/asan_rtl.cc