diff options
| author | 2022-08-06 20:54:35 +0100 | |
|---|---|---|
| committer | 2022-08-17 16:14:30 +0000 | |
| commit | dc386f664046e35702a707660c6263ffea200d71 (patch) | |
| tree | fe01e88316e930321d6cf112b9e290c350768a92 /compiler/jit/jit_compiler.cc | |
| parent | 933d012af16eeb97f21a9ab08f96af6b474dce99 (diff) | |
Reflect runtime's behavior on boot images in artd.
app_process determines boot image location based on system properties
(e.g., "dalvik.vm.boot-image", "dalvik.vm.profilebootclasspath"). After
this change, those properties are reflected in the boot image location
passed from artd to OatFileAssistant.
In addition, this change adds helper functions that return runtime
options and cache them internally. These functions will also be used
when constructing dex2oat arguments. The purpose is to prevent those
runtime options from being changed due to later system property changes.
This aligns with the runtime's behavior: the runtime is initialized only
once and later system property changes don't take effect.
Partially cherry picked from
commit 23936fcfb1f2cffe46448cdd650d3075df60204d.
Bug: 229268202
Test: adb shell pm art get-optimization-status \
com.google.android.youtube
Merged-In: I269ab46023d779ca25cbb4428d6cb7a98490611f
Change-Id: Ie2177b1088ff70082b5b891ddcba41584f71cbdf
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
0 files changed, 0 insertions, 0 deletions