Ulya Trafimovich
7eebb4f4e8
For JIT-zygote config, add "apex" boot image files to the ART apex.
JIT-zygote boot image was split into primary and framework extension
in CL I5493e575ebf90bad1d5ad2850004d54590bbc079, but that CL forgot to
add JIT-zygote boot image files to the ART apex. Add them now.
Test: Steps 1-3:
1. Temporarily enable Jit zygote in the product device config (in
this 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. Build and flash:
$ lunch aosp_walleye-userdebug && m \
&& adb reboot bootloader && fastboot flashall -w
3. Ensure that apex.art and apex-framework.art are mapped in the
JIT-zygote address space:
$ adb shell cat /proc/`adb shell ps | grep zygote64 | awk {'print $2'}`/maps | grep apex.art
6ffde000-70102000 rw-p 00000000 00:00 0 [anon:dalvik-/apex/com.android.art/javalib/apex.art]
701e5000-70262000 rw-p 00000000 00:00 0 [anon:dalvik-/apex/com.android.art/javalib/apex.art]
72715cf000-72715d4000 r--p 000ba000 07:98 93 /apex/com.android.art/javalib/arm64/apex.art
$ adb shell cat /proc/`adb shell ps | grep zygote64 | awk {'print $2'}`/maps | grep apex-framework.art
7084b000-70cc2000 rw-p 00000000 00:00 0 [anon:dalvik-/system/framework/apex-framework.art]
70fd8000-71109000 rw-p 00000000 00:00 0 [anon:dalvik-/system/framework/apex-framework.art]
7271517000-7271526000 r--p 00295000 fc:00 1268 /system/framework/arm64/apex-framework.art
Change-Id: I985e15de9f38f345ba3e99451c6d9b8e2cb5d698
2020-01-22 15:27:08 +00:00
..
2020-01-17 09:57:52 +00:00
2019-09-29 23:26:37 -07:00
2020-01-08 14:49:31 +09:00
2020-01-21 13:44:50 +00:00
2019-03-21 11:25:46 +00:00
2019-12-11 17:27:07 +09:00
2020-01-07 06:23:04 +00:00
2019-12-17 16:55:20 -08:00
2020-01-17 06:08:12 -08:00
2020-01-17 06:08:12 -08:00
2020-01-15 12:40:03 -08:00
2019-10-16 14:52:30 -07:00
2020-01-08 14:49:31 +09:00
2019-11-27 12:40:07 +01:00
2020-01-08 15:56:52 +00:00
2020-01-22 15:27:08 +00:00
2020-01-13 10:38:01 +00:00
2019-07-29 20:48:30 +09:00
2020-01-13 10:38:01 +00:00
2019-12-31 15:08:59 +00:00
2019-10-04 14:00:36 -07:00
2019-12-19 19:19:40 +00:00
2019-12-19 02:11:10 +00:00
2019-02-28 16:13:20 +00:00
2018-01-29 12:46:26 -08:00
2019-06-11 13:30:13 -07:00
2019-05-06 14:22:26 -07:00
2020-01-15 11:17:57 +00:00
2020-01-15 06:12:45 +00:00
2019-01-23 18:05:18 +00:00
2020-01-11 01:11:46 +00:00
2019-07-17 11:15:09 -07:00
2019-11-07 02:05:06 +00:00
2019-04-30 15:33:49 +01:00
2020-01-08 11:24:58 +00:00
2019-07-17 11:15:09 -07:00
2019-01-23 20:17:51 +00:00
2019-12-19 19:19:40 +00:00
2019-10-26 20:35:13 +00:00
2019-12-11 17:25:27 +09:00
2020-01-21 18:37:58 +00:00
2019-12-18 08:19:10 -08:00
2020-01-21 13:44:50 +00:00
2019-07-22 13:18:48 -07:00
2019-12-19 09:35:23 +09:00
2020-01-15 11:17:57 +00:00
2020-01-03 14:16:22 +09:00
2019-10-18 15:14:15 -07:00