Replace PRODUCT_DISABLE_SCUDO with MALLOC_LOW_MEMORY.
The PRODUCT_DISABLE_SCUDO only removes scudo from the list of
sanitizers. It doesn't change the allocator to be used.
Instead use MALLOC_LOW_MEMORY := true, which causes a device
to use a low memory version of the allocator.
Bug: 318756974
Test: Treehugger.
Change-Id: Idaf57cfa4fa723ce8d7f285b2bad8ec29059f0df
diff --git a/target/product/go_defaults_common.mk b/target/product/go_defaults_common.mk
index 5218f29..fd4047a 100644
--- a/target/product/go_defaults_common.mk
+++ b/target/product/go_defaults_common.mk
@@ -37,9 +37,9 @@
# leave less information available via JDWP.
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
-# Disable Scudo outside of eng builds to save RAM.
+# Use the low memory allocator outside of eng builds to save RSS.
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
- PRODUCT_DISABLE_SCUDO := true
+ MALLOC_LOW_MEMORY := true
endif
# Add the system properties.