summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-08-26 23:58:42 +0000
committerKostya Serebryany <kcc@google.com>2016-08-26 23:58:42 +0000
commitb72479b84a4f54b78375de565af307e3f101627f (patch)
tree11742b6e172ebe00c9032efbf278aba920fd41a7 /compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h
parent3bb32cc79c89cac91abcc230f41b2afa8c03b101 (diff)
downloadbcm5719-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.h2
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) {
OpenPOWER on IntegriCloud