diff options
author | Kostya Serebryany <kcc@google.com> | 2016-08-26 23:58:42 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-08-26 23:58:42 +0000 |
commit | 28c63a2f21c7729c8dbd52bc6f005f6c2e30087c (patch) | |
tree | 4ce82ea31edb4f1c79006386a1dabceb02174609 /lib/sanitizer_common/sanitizer_allocator_combined.h | |
parent | 7d07acfe2b4a31e38f2a250a0a6daef78f19d6bc (diff) |
[asan] first attempt at releasing free-d memory back to the system using madvise. Requires quite some tuning.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@279887 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_allocator_combined.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_allocator_combined.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_allocator_combined.h b/lib/sanitizer_common/sanitizer_allocator_combined.h index dceb64bbd..2c8e2a2bb 100644 --- a/lib/sanitizer_common/sanitizer_allocator_combined.h +++ b/lib/sanitizer_common/sanitizer_allocator_combined.h @@ -190,6 +190,8 @@ class CombinedAllocator { primary_.ForceUnlock(); } + void ReleaseToOS() { primary_.ReleaseToOS(); } + // Iterate over all existing chunks. // The allocator must be locked when calling this function. void ForEachChunk(ForEachChunkCallback callback, void *arg) { |