From d1342015375f99d2a0f0e99457457ff8472c46f8 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 30 Jul 2020 20:38:49 +0000 Subject: [PATCH] Zero C++ heap by default. Let the flakes, and the crashes, and the deadlocks, and the leaks, and the undefined behavior which steals away so many nights find their numbers decimated in the homogeneous conditions we now rest our data. To give some intuition why this is not so underperformant, zeroing memory is one way of priming caches. This change is actually a no-op, because build/make/core/soong_config.mk always overrides this setting, but it reflects the spirit and future direction of this change. Bug: 131355925 Test: basic simple perf comparisons Change-Id: I8254c36373de52091839561973c9741e8f85aa09 --- android/variable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/variable.go b/android/variable.go index c1e1b42be..86b6f1a75 100644 --- a/android/variable.go +++ b/android/variable.go @@ -389,7 +389,7 @@ func (v *productVariables) SetDefaultConfig() { AAPTPrebuiltDPI: []string{"xhdpi", "xxhdpi"}, Malloc_not_svelte: boolPtr(true), - Malloc_zero_contents: boolPtr(false), + Malloc_zero_contents: boolPtr(true), Malloc_pattern_fill_contents: boolPtr(false), Safestack: boolPtr(false), }