summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_flags.inc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-01-21 02:05:31 +0000
committerKostya Serebryany <kcc@google.com>2015-01-21 02:05:31 +0000
commitf403e531abe8f3472056fadbc8c12fa8438e150a (patch)
treedb3253b1c811fbc3212a6d7ea2556b5a25297fef /lib/sanitizer_common/sanitizer_flags.inc
parent61df5b172dc3908c8b87fdad5f9cc2fbbdb5703a (diff)
[asan] use MADV_NOHUGEPAGE for shadow to reduce the actual memory usage
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.inc')
-rw-r--r--lib/sanitizer_common/sanitizer_flags.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.inc b/lib/sanitizer_common/sanitizer_flags.inc
index c39e7a698..cc4232fbc 100644
--- a/lib/sanitizer_common/sanitizer_flags.inc
+++ b/lib/sanitizer_common/sanitizer_flags.inc
@@ -139,3 +139,5 @@ COMMON_FLAG(const char *, stack_trace_format, "DEFAULT",
"Format string used to render stack frames. "
"See sanitizer_stacktrace_printer.h for the format description. "
"Use DEFAULT to get default format.")
+COMMON_FLAG(bool, no_huge_pages_for_shadow, true,
+ "If true, the shadow is not allowed to use huge pages. ")