summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_allocator_interface.h
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-10-23 17:12:07 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-10-23 17:12:07 +0000
commita21db44b446dc6e7db373e6cc4c57c9cdbd768c9 (patch)
treeacc1755d97ff247ff926634642d1d8ef5cba3fe1 /lib/sanitizer_common/sanitizer_allocator_interface.h
parente378f8791d2d42e4c3f26033ba20a1bf4b43d2d5 (diff)
[Sanitizers] New sanitizer API to purge allocator quarantine.
Summary: Purging allocator quarantine and returning memory to OS might be desired between fuzzer iterations since, most likely, the quarantine is not going to catch bugs in the code under fuzz, but reducing RSS might significantly prolong the fuzzing session. Reviewers: cryptoad Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D39153 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@316347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator_interface.h')
-rw-r--r--lib/sanitizer_common/sanitizer_allocator_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator_interface.h b/lib/sanitizer_common/sanitizer_allocator_interface.h
index 13910e719..2f5ce3151 100644
--- a/lib/sanitizer_common/sanitizer_allocator_interface.h
+++ b/lib/sanitizer_common/sanitizer_allocator_interface.h
@@ -39,6 +39,9 @@ SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE
void __sanitizer_free_hook(void *ptr);
SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE void
+__sanitizer_purge_allocator();
+
+SANITIZER_INTERFACE_ATTRIBUTE SANITIZER_WEAK_ATTRIBUTE void
__sanitizer_print_memory_profile(uptr top_percent, uptr max_number_of_contexts);
} // extern "C"