[GWP-ASan] Add aligned allocations.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Thu, 14 Jan 2021 23:16:56 +0000 (15:16 -0800)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Tue, 2 Feb 2021 22:44:35 +0000 (14:44 -0800)
commit9dc06762470cb5a6cde8de5833cb75262e1bacb0
tree8e7a7b6b09ef3af070ab63baf07e74cac9a7952c
parent32e98f05fe108e7b25dcf2031c499b96a1436e1d
[GWP-ASan] Add aligned allocations.

Adds a new allocation API to GWP-ASan that handles size+alignment
restrictions.

Differential Revision: https://reviews.llvm.org/D94830
12 files changed:
compiler-rt/lib/gwp_asan/CMakeLists.txt
compiler-rt/lib/gwp_asan/common.cpp
compiler-rt/lib/gwp_asan/common.h
compiler-rt/lib/gwp_asan/crash_handler.cpp
compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
compiler-rt/lib/gwp_asan/guarded_pool_allocator.h
compiler-rt/lib/gwp_asan/options.inc
compiler-rt/lib/gwp_asan/tests/alignment.cpp
compiler-rt/lib/gwp_asan/tests/basic.cpp
compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp
compiler-rt/lib/gwp_asan/utilities.cpp [deleted file]
compiler-rt/lib/gwp_asan/utilities.h