summaryrefslogtreecommitdiff
path: root/lib/asan/asan_rtl.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-01-06 23:53:32 +0000
committerKostya Serebryany <kcc@google.com>2015-01-06 23:53:32 +0000
commitdf867df2d3da7451984333ebcb6b4040dbcda164 (patch)
tree744c0312ff145463e55028d3c01d025a9e073f7f /lib/asan/asan_rtl.cc
parent001d038609ab5b91e1e4afa5dc0bf5d5437a2f95 (diff)
[asan] add a flag soft_rss_limit_mb
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_rtl.cc')
-rw-r--r--lib/asan/asan_rtl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asan/asan_rtl.cc b/lib/asan/asan_rtl.cc
index 32ad0f208..9d994885e 100644
--- a/lib/asan/asan_rtl.cc
+++ b/lib/asan/asan_rtl.cc
@@ -396,6 +396,7 @@ static void AsanInitInternal() {
InitializeAllocator(allocator_options);
MaybeStartBackgroudThread();
+ SetSoftRssLimitExceededCallback(AsanSoftRssLimitExceededCallback);
// On Linux AsanThread::ThreadStart() calls malloc() that's why asan_inited
// should be set to 1 prior to initializing the threads.