[lsan] Share platform allocator settings between ASan and LSan
authorPetr Hosek <phosek@google.com>
Wed, 16 Sep 2020 20:18:41 +0000 (13:18 -0700)
committerPetr Hosek <phosek@google.com>
Wed, 16 Sep 2020 20:30:59 +0000 (13:30 -0700)
commitc57df3dc09e8b59c55c83ba5c354569a82a5c3b8
tree0c883b83f6862fb77eaf7fa510d55ce81ddbc2d4
parent89ee4c0314bd08143d954d80bf7678d3a3ecc15a
[lsan] Share platform allocator settings between ASan and LSan

This moves the platform-specific parameter logic from asan into
sanitizer_common so lsan can reuse it.

Patch By: mcgrathr

Differential Revision: https://reviews.llvm.org/D85930
compiler-rt/lib/asan/asan_allocator.h
compiler-rt/lib/lsan/lsan_allocator.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator.h