diff options
author | Kostya Serebryany <kcc@google.com> | 2015-01-06 23:53:32 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-01-06 23:53:32 +0000 |
commit | df867df2d3da7451984333ebcb6b4040dbcda164 (patch) | |
tree | 744c0312ff145463e55028d3c01d025a9e073f7f /lib/sanitizer_common/sanitizer_flags.inc | |
parent | 001d038609ab5b91e1e4afa5dc0bf5d5437a2f95 (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/sanitizer_common/sanitizer_flags.inc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.inc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.inc b/lib/sanitizer_common/sanitizer_flags.inc index bf7941218..c39e7a698 100644 --- a/lib/sanitizer_common/sanitizer_flags.inc +++ b/lib/sanitizer_common/sanitizer_flags.inc @@ -91,10 +91,19 @@ COMMON_FLAG(uptr, mmap_limit_mb, 0, "Limit the amount of mmap-ed memory (excluding shadow) in Mb; " "not a user-facing flag, used mosly for testing the tools") COMMON_FLAG(uptr, hard_rss_limit_mb, 0, - "RSS limit in Mb." + "Hard RSS limit in Mb." " If non-zero, a background thread is spawned at startup" " which periodically reads RSS and aborts the process if the" " limit is reached") +COMMON_FLAG(uptr, soft_rss_limit_mb, 0, + "Soft RSS limit in Mb." + " If non-zero, a background thread is spawned at startup" + " which periodically reads RSS. If the limit is reached" + " all subsequent malloc/new calls will fail or return NULL" + " (depending on the value of allocator_may_return_null)" + " until the RSS goes below the soft limit." + " This limit does not affect memory allocations other than" + " malloc/new.") COMMON_FLAG( bool, coverage, false, "If set, coverage information will be dumped at program shutdown (if the " |