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:
@@ -37,9 +37,9 @@ PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
|
|||||||
# leave less information available via JDWP.
|
# leave less information available via JDWP.
|
||||||
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
|
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)))
|
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||||
PRODUCT_DISABLE_SCUDO := true
|
MALLOC_LOW_MEMORY := true
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Add the system properties.
|
# Add the system properties.
|
||||||
|
Reference in New Issue
Block a user