Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7064db2a authored by Christopher Ferris's avatar Christopher Ferris
Browse files

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
parent ca4c83ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.