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 | b72479b84a4f54b78375de565af307e3f101627f (patch) | |
| tree | 11742b6e172ebe00c9032efbf278aba920fd41a7 /compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h | |
| parent | 3bb32cc79c89cac91abcc230f41b2afa8c03b101 (diff) | |
| download | bcm5719-llvm-b72479b84a4f54b78375de565af307e3f101627f.tar.gz bcm5719-llvm-b72479b84a4f54b78375de565af307e3f101627f.zip | |
[asan] first attempt at releasing free-d memory back to the system using madvise. Requires quite some tuning.
llvm-svn: 279887
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h index dceb64bbd3f..2c8e2a2bbd3 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h +++ b/compiler-rt/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) { |

