llvm-project/compiler-rt/lib/hwasan
Evgeniy Stepanov c089fbbaf2 [hwasan] Madvise away unused shadow.
Summary:
Whenever a large shadow region is tagged to zero, madvise(DONT_NEED)
as much of it as possible.

This reduces shadow RSS on Android by 45% or so, and total memory use
by 2-4%, probably even more on long running multithreaded programs.
CPU time seems to be in the noise.

Reviewers: kcc, pcc

Subscribers: srhines, kubamracek, llvm-commits

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

llvm-svn: 351620
2019-01-19 01:54:09 +00:00
..
.clang-format [sanitizer] Remove unneeded blank lines 2018-05-09 00:44:26 +00:00
CMakeLists.txt [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan.cc [hwasan] Madvise away unused shadow. 2019-01-19 01:54:09 +00:00
hwasan.h hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan.syms.extra
hwasan_allocator.cc hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan_allocator.h hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan_blacklist.txt
hwasan_checks.h hwasan: Ignore loads and stores of size 0. 2019-01-09 00:44:13 +00:00
hwasan_dynamic_shadow.cc [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
hwasan_dynamic_shadow.h [HWASan] Add files missing in r330624 2018-04-23 19:05:12 +00:00
hwasan_flags.h [hwasan] formatting change, NFC 2018-08-29 22:23:34 +00:00
hwasan_flags.inc [hwasan] implement free_checks_tail_magic=1 2018-11-17 00:25:17 +00:00
hwasan_interceptors.cc Bring back the pthread_create interceptor, but only on non-aarch64. 2019-01-04 23:24:02 +00:00
hwasan_interface_internal.h [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan_linux.cc hwasan: Implement lazy thread initialization for the interceptor ABI. 2019-01-04 19:27:04 +00:00
hwasan_mapping.h [hwasan] remove even more stale code 2018-08-29 22:54:52 +00:00
hwasan_memintrinsics.cc [HWASAN] Add support for memory intrinsics 2018-12-20 09:10:03 +00:00
hwasan_new_delete.cc hwasan: Use system allocator to realloc and free untagged pointers in interceptor mode. 2019-01-04 19:21:51 +00:00
hwasan_poisoning.cc [hwasan] Madvise away unused shadow. 2019-01-19 01:54:09 +00:00
hwasan_poisoning.h [hwasan] formatting change, NFC 2018-08-29 22:23:34 +00:00
hwasan_report.cc hwasan: Fix typo: Previosly -> Previously. 2018-12-15 07:06:24 +00:00
hwasan_report.h [hwasan] implement free_checks_tail_magic=1 2018-11-17 00:25:17 +00:00
hwasan_thread.cc [asan] Support running without /proc 2019-01-08 01:07:34 +00:00
hwasan_thread.h [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
hwasan_thread_list.cc [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00
hwasan_thread_list.h [hwasan] Record and display stack history in stack-based reports. 2018-09-24 23:03:34 +00:00