From bd98b551000d1f2a317cf1c5ece797a3f36561e0 Mon Sep 17 00:00:00 2001 From: Ulya Trafimovich Date: Mon, 9 Dec 2019 16:00:01 +0000 Subject: [PATCH] Use boot image extension in the JIT-zygote experiment. Test: temporarily enable JIT-zygote configuration, build, boot the device and ensure that the JIT-zygote specific boot image apex-framework.art is mapped in the zygote address space: 1. enable Jit zygote in the product device config (in my case device/google/muskie/aosp_walleye.mk): +# System server should not contain compiled code. +PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := verify + +# Use the apex image for preopting. +DEXPREOPT_USE_APEX_IMAGE := true + +# Have the runtime pick up the apex image. +PRODUCT_PROPERTY_OVERRIDES += \ + dalvik.vm.boot-image=/apex/com.android.art/javalib/apex.art:/system/framework/apex-framework.art 2. lunch aosp_walleye-userdebug \ && m \ && adb reboot bootloader \ && fastboot flashall -w 3. adb shell cat /proc/`adb shell ps | grep zygote64 | awk {'print $2'}`/maps | grep apex-framework.art 6fe44000-7025c000 rw-p 00000000 fc:02 1179718 /data/dalvik-cache/arm64/apex@com.android.art@javalib@apex-framework.art 70571000-70696000 rw-p 0072d000 fc:02 1179718 /data/dalvik-cache/arm64/apex@com.android.art@javalib@apex-framework.art 75a339f000-75a33ac000 r--p 00852000 fc:02 1179718 /data/dalvik-cache/arm64/apex@com.android.art@javalib@apex-framework.art Change-Id: I6818fde087ec562057631003265bc1ec0e91688c --- core/dex_preopt_odex_install.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk index ab1ab28c5a..0fb2dd2b47 100644 --- a/core/dex_preopt_odex_install.mk +++ b/core/dex_preopt_odex_install.mk @@ -114,7 +114,7 @@ my_dexpreopt_images_deps := my_dexpreopt_image_locations := my_dexpreopt_infix := boot ifeq (true, $(DEXPREOPT_USE_APEX_IMAGE)) - my_dexpreopt_infix := apex + my_dexpreopt_infix := jitzygote-boot endif ifdef LOCAL_DEX_PREOPT