[sanitizers] Add init function to set alignment of low level allocator
authorWalter Lee <waltl@google.com>
Tue, 21 Nov 2017 01:01:32 +0000 (01:01 +0000)
committerWalter Lee <waltl@google.com>
Tue, 21 Nov 2017 01:01:32 +0000 (01:01 +0000)
commit6c529f7e96b0159413bc0ce6186b2b88ce0afcbc
tree649252523b6b9a0c2a88334985b450739e38442b
parent0ff0fbbd6bf8f2329bc118091ee4806543ca88ba
[sanitizers] Add init function to set alignment of low level allocator

ASan requires that the min alignment be at least the shadow
granularity, so add an init function to do that.

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

llvm-svn: 318717
compiler-rt/lib/asan/asan_rtl.cc
compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc
compiler-rt/lib/sanitizer_common/sanitizer_common.h