diff options
Diffstat (limited to 'core/dex_preopt_libart.mk')
-rw-r--r-- | core/dex_preopt_libart.mk | 11 |
1 files changed, 10 insertions, 1 deletions
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) \ |