summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerOptions.h
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-10-23 22:04:30 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-10-23 22:04:30 +0000
commit6f1c26f222b5df888a42ac53f1b600f2bd511c1b (patch)
treecc314d8e1a5620e66d803ffcb18aa7cb464057dc /compiler-rt/lib/fuzzer/FuzzerOptions.h
parent30680e943735ae8f008af0513e85725f3d6cfee6 (diff)
downloadbcm5719-llvm-6f1c26f222b5df888a42ac53f1b600f2bd511c1b.tar.gz
bcm5719-llvm-6f1c26f222b5df888a42ac53f1b600f2bd511c1b.zip
[libFuzzer] Periodically purge allocator's quarantine to prolong fuzzing sessions.
Summary: Fuzzing targets that allocate/deallocate a lot of memory tend to consume a lot of RSS when ASan quarantine is enabled. Purging quarantine between iterations and returning memory to OS keeps RSS down and should not reduce the quarantine effectiveness provided the fuzz target does not preserve state between iterations (in this case this feature can be turned off). Based on D39153. Reviewers: vitalybuka Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39155 llvm-svn: 316382
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerOptions.h')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerOptions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerOptions.h b/compiler-rt/lib/fuzzer/FuzzerOptions.h
index e57c7df5b0f..73953e1548b 100644
--- a/compiler-rt/lib/fuzzer/FuzzerOptions.h
+++ b/compiler-rt/lib/fuzzer/FuzzerOptions.h
@@ -54,6 +54,7 @@ struct FuzzingOptions {
bool DumpCoverage = false;
bool UseClangCoverage = false;
bool DetectLeaks = true;
+ int PurgeAllocatorIntervalSec = 1;
int UseFeatureFrequency = false;
int TraceMalloc = 0;
bool HandleAbrt = false;
OpenPOWER on IntegriCloud