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
This commit is contained in:
Christopher Ferris
2024-07-19 21:38:52 +00:00
parent ca4c83efa3
commit 7064db2a19

View File

@@ -37,9 +37,9 @@ PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
# 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.