[lsan] Share platform allocator settings between ASan and LSan
authorRoland McGrath <mcgrathr@google.com>
Wed, 23 Sep 2020 01:27:03 +0000 (18:27 -0700)
committerRoland McGrath <mcgrathr@google.com>
Sat, 3 Oct 2020 00:55:46 +0000 (17:55 -0700)
commit1c897e9d72979730f7555e77dd54fe892a461637
treedb141554b4a36468a24dda485ba19e7d33948ea5
parent88c9162c9d47ef43a505bc5301dc626f3cd4f437
[lsan] Share platform allocator settings between ASan and LSan

This moves the platform-specific parameter logic from asan into
lsan_common.h to lsan can share it.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D87795
compiler-rt/lib/asan/asan_allocator.h
compiler-rt/lib/lsan/lsan_allocator.h
compiler-rt/lib/lsan/lsan_common.h