hanchenye-llvm-project/compiler-rt/lib/scudo
Kostya Kortchinsky 71dcc33c58 [scudo] Lay the foundation for 32-bit support
Summary:
In order to support 32-bit platforms, we have to make some adjustments in
multiple locations, one of them being the Scudo chunk header. For it to fit on
64 bits (as a reminder, on x64 it's 128 bits), I had to crunch the space taken
by some of the fields. In order to keep the offset field small, the secondary
allocator was changed to accomodate aligned allocations for larger alignments,
hence making the offset constant for chunks serviced by it.

The resulting header candidate has been added, and further modifications to
allow 32-bit support will follow.

Another notable change is the addition of MaybeStartBackgroudThread() to allow
release of the memory to the OS.

Reviewers: kcc

Subscribers: llvm-commits

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

llvm-svn: 285209
2016-10-26 16:16:58 +00:00
..
CMakeLists.txt [CMake] Connect Compiler-RT targets to LLVM Runtimes directory 2016-08-26 20:52:22 +00:00
scudo_allocator.cpp [scudo] Lay the foundation for 32-bit support 2016-10-26 16:16:58 +00:00
scudo_allocator.h [scudo] Lay the foundation for 32-bit support 2016-10-26 16:16:58 +00:00
scudo_allocator_secondary.h [scudo] Lay the foundation for 32-bit support 2016-10-26 16:16:58 +00:00
scudo_flags.cpp [sanitizer] Implement a __asan_default_options() equivalent for Scudo 2016-08-02 22:25:38 +00:00
scudo_flags.h
scudo_flags.inc
scudo_interceptors.cpp
scudo_new_delete.cpp
scudo_termination.cpp [sanitizer] Implement a __asan_default_options() equivalent for Scudo 2016-08-02 22:25:38 +00:00
scudo_utils.cpp [scudo] Fix an edge case in the secondary allocator 2016-09-30 19:57:21 +00:00
scudo_utils.h [scudo] add NORETURN to the declaration of dieWithMessage; this should fix a warning in lib/scudo/scudo_termination.cpp 2016-08-02 23:23:13 +00:00