[asan] Use linker initialization for the allocator
authorKuba Mracek <mracek@apple.com>
Thu, 14 Dec 2017 00:07:15 +0000 (00:07 +0000)
committerKuba Mracek <mracek@apple.com>
Thu, 14 Dec 2017 00:07:15 +0000 (00:07 +0000)
commit2c1fa4feb183b7168d98f5dba8984b9dfde4ab31
tree2064f7dbcb8fa1e879b2328fe2963dbec5e90d01
parenteb18bc5d2223372544834cc858237b4ebd29101a
[asan] Use linker initialization for the allocator

This saves ~2 MB of dirty memory footprint. Can be a big deal on mobile devices especially when running multiple processes with ASan.

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

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