From 3c5a52a4778649cb52513212389260dd537c789a Mon Sep 17 00:00:00 2001 From: Evgenii Stepanov Date: Tue, 18 Dec 2018 17:02:44 -0800 Subject: [PATCH] [hwasan] Reduce history size to save memory. Bug: 112437883 Test: adb shell echo $HWASAN_OPTIONS Change-Id: Ifc4ab10e37efb1a0ce7ea77ad691947d24c2da2b --- cc/sanitize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/sanitize.go b/cc/sanitize.go index 5db6bdfae..8d33de53d 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -58,7 +58,7 @@ var ( // TODO(pcc): Remove the -Xclang once LLVM r346526 is rolled into the compiler. minimalRuntimeFlags = []string{"-Xclang", "-fsanitize-minimal-runtime", "-fno-sanitize-trap=integer,undefined", "-fno-sanitize-recover=integer,undefined"} - hwasanGlobalOptions = []string{"heap_history_size=4095"} + hwasanGlobalOptions = []string{"heap_history_size=1023,stack_history_size=512"} ) type sanitizerType int