From 62a7cac50dd8334ac051f8a50241f2fc224f9bce Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Thu, 19 Mar 2015 10:34:23 -0700 Subject: [PATCH] Change eng builds from interpret-only to verify-at-runtime Faster dex2oat -> faster boot after syncing core libraries. Bug: 19762303 Change-Id: Ic266ed9c59829e0e18acc4adc103724cf480de7f --- CleanSpec.mk | 5 +++++ core/main.mk | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CleanSpec.mk b/CleanSpec.mk index 088303923..edf0179a3 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -344,6 +344,11 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/default.prop) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/default.prop) +# Change from interpret-only to verify-at-runtime. +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/build.prop) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/default.prop) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/default.prop) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/core/main.mk b/core/main.mk index 0e058af77..13465e3ec 100644 --- a/core/main.mk +++ b/core/main.mk @@ -388,10 +388,10 @@ ifneq ($(filter ro.setupwizard.mode=ENABLED, $(call collapse-pairs, $(ADDITIONAL ro.setupwizard.mode=OPTIONAL endif ifndef is_sdk_build - # Don't even verify the image on eng builds to speed startup - ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.image-dex2oat-filter=verify-none - # Don't compile apps on eng builds to speed startup - ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.dex2oat-filter=interpret-only + # Don't verify or compile the image on eng builds to speed startup. + ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.image-dex2oat-filter=verify-at-runtime + # Don't verify or compile apps on eng builds to speed startup. + ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.dex2oat-filter=verify-at-runtime endif ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.usejit=true endif