diff options
-rw-r--r-- | CleanSpec.mk | 5 | ||||
-rw-r--r-- | core/dex_preopt_libart.mk | 11 | ||||
-rw-r--r-- | core/dex_preopt_libart_boot.mk | 3 | ||||
-rw-r--r-- | target/product/runtime_libart.mk | 6 |
4 files changed, 23 insertions, 2 deletions
diff --git a/CleanSpec.mk b/CleanSpec.mk index a9fea3e..aebf0f9 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -253,6 +253,11 @@ $(call add-clean-step, rm -rf $(HOST_OUT_INTERMEDIATES)) # Change ro.zygote for core_64_bit.mk from zygote32_64 to zygote64_32 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/default.prop) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/default.prop) + +# Adding dalvik.vm.dex2oat-Xms, dalvik.vm.dex2oat-Xmx +# dalvik.vm.image-dex2oat-Xms, and dalvik.vm.image-dex2oat-Xmx +$(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/dex_preopt_libart.mk b/core/dex_preopt_libart.mk index 411af75..90ba543 100644 --- a/core/dex_preopt_libart.mk +++ b/core/dex_preopt_libart.mk @@ -27,6 +27,15 @@ else LIBART_IMG_TARGET_BASE_ADDRESS := 0x70000000 endif +define get-product-property + $(strip $(patsubst $(1)=%,%,$(filter $(1)=%,$(PRODUCT_PROPERTY_OVERRIDES)))) +endef + +DEX2OAT_IMAGE_XMS := $(get-product-property dalvik.vm.image-dex2oat-Xms) +DEX2OAT_IMAGE_XMX := $(get-product-property dalvik.vm.image-dex2oat-Xmx) +DEX2OAT_XMS := $(get-product-property dalvik.vm.dex2oat-Xms) +DEX2OAT_XMX := $(get-product-property dalvik.vm.dex2oat-Xmx) + ######################################################################## # The full system boot classpath @@ -68,7 +77,7 @@ define dex2oat-one-file $(hide) rm -f $(2) $(hide) mkdir -p $(dir $(2)) $(hide) $(DEX2OATD) \ - --runtime-arg -Xms64m --runtime-arg -Xmx64m \ + --runtime-arg $(DEX2OAT_XMS) --runtime-arg $(DEX2OAT_XMX) \ --boot-image=$(PRIVATE_DEX_PREOPT_IMAGE_LOCATION) \ --dex-file=$(1) \ --dex-location=$(PRIVATE_DEX_LOCATION) \ diff --git a/core/dex_preopt_libart_boot.mk b/core/dex_preopt_libart_boot.mk index 70130b6..e48e3f9 100644 --- a/core/dex_preopt_libart_boot.mk +++ b/core/dex_preopt_libart_boot.mk @@ -43,7 +43,8 @@ $($(my_2nd_arch_prefix)DEFAULT_DEX_PREOPT_BUILT_IMAGE_FILENAME) : $(LIBART_TARGE @echo "target dex2oat: $@ ($?)" @mkdir -p $(dir $@) @mkdir -p $(dir $($(PRIVATE_2ND_ARCH_VAR_PREFIX)LIBART_TARGET_BOOT_OAT_UNSTRIPPED)) - $(hide) $(DEX2OATD) --runtime-arg -Xms256m --runtime-arg -Xmx256m --image-classes=$(PRELOADED_CLASSES) \ + $(hide) $(DEX2OATD) --runtime-arg $(DEX2OAT_IMAGE_XMS) --runtime-arg $(DEX2OAT_IMAGE_XMX) \ + --image-classes=$(PRELOADED_CLASSES) \ $(addprefix --dex-file=,$(LIBART_TARGET_BOOT_DEX_FILES)) \ $(addprefix --dex-location=,$(LIBART_TARGET_BOOT_DEX_LOCATIONS)) \ --oat-symbols=$($(PRIVATE_2ND_ARCH_VAR_PREFIX)LIBART_TARGET_BOOT_OAT_UNSTRIPPED) \ diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk index de4cf17..6cb8818 100644 --- a/target/product/runtime_libart.mk +++ b/target/product/runtime_libart.mk @@ -22,4 +22,10 @@ PRODUCT_PACKAGES += \ dex2oat \ oatdump +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + dalvik.vm.image-dex2oat-Xms=64m \ + dalvik.vm.image-dex2oat-Xmx=64m \ + dalvik.vm.dex2oat-Xms=64m \ + dalvik.vm.dex2oat-Xmx=512m \ + include $(SRC_TARGET_DIR)/product/runtime_common.mk |