llvm-project/compiler-rt/lib/scudo
Kostya Kortchinsky 8d6257b4bf [scudo] 32-bit quarantine sizes adjustments and bug fixes
Summary:
The local and global quarantine sizes were not offering a distinction for
32-bit and 64-bit platforms. This is addressed with lower values for 32-bit.

When writing additional tests for the quarantine, it was discovered that when
calling some of the allocator interface function prior to any allocation
operation having occured, the test would crash due to the allocator not being
initialized. This was addressed by making sure the allocator is initialized
for those scenarios.

Relevant tests were added in interface.cpp and quarantine.cpp.

Last change being the removal of the extraneous link dependencies for the
tests thanks to rL293220, anf the addition of the gc-sections linker flag.

Reviewers: kcc, alekseyshl

Reviewed By: alekseyshl

Subscribers: llvm-commits

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

llvm-svn: 294037
2017-02-03 20:49:42 +00:00
..
CMakeLists.txt [scudo] Refactor of CRC32 and ARM runtime CRC32 detection 2017-01-18 17:11:17 +00:00
scudo_allocator.cpp [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
scudo_allocator.h [scudo] Replacing std::atomic with Sanitizer's atomics 2017-01-20 18:32:18 +00:00
scudo_allocator_secondary.h Corrected D27428: Do not use the alignment-rounded-up size with secondary 2016-12-13 19:31:54 +00:00
scudo_crc32.cpp [scudo] Refactor of CRC32 and ARM runtime CRC32 detection 2017-01-18 17:11:17 +00:00
scudo_flags.cpp [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
scudo_flags.h [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_flags.inc [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
scudo_interceptors.cpp [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_new_delete.cpp [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_termination.cpp [scudo] 32-bit and hardware agnostic support 2016-11-30 17:32:20 +00:00
scudo_utils.cpp [scudo] Refactor of CRC32 and ARM runtime CRC32 detection 2017-01-18 17:11:17 +00:00
scudo_utils.h [scudo] Refactor of CRC32 and ARM runtime CRC32 detection 2017-01-18 17:11:17 +00:00