summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2017-01-06 08:50:56 -0800
committerMark Salyzyn <salyzyn@google.com>2017-01-06 08:54:01 -0800
commit88c3acd682356211a12b0c1ea39fdb83e43c9cec (patch)
tree3c5e4b790de3c266ce017645ec9ad0199a9c82d9
parent08ce097a4dfba18559bc0d32d830065b76fcacc2 (diff)
downloadflounder-nougat-mr2-pixel-release.tar.gz
Denver processor only has 2 cpus, we should limit dex2oat background operations to 1 thread and the associated lower memory footprint so that the impact is controlled. Bug: 34114061 Test: manual smoke test Change-Id: I1f32b1734aad5765223959a9735a66b086e3448a
-rw-r--r--device.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index 6a40714..0735702 100644
--- a/device.mk
+++ b/device.mk
@@ -226,6 +226,9 @@ PRODUCT_PROPERTY_OVERRIDES := \
# setup dalvik vm configs.
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
+# N9 has only two CPUs, so drop dex2oat pressure after boot at runtime
+PRODUCT_PROPERTY_OVERRIDES += \
+ dalvik.vm.dex2oat-threads=1
# for off charging mode
PRODUCT_PACKAGES += \