summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2020-02-04 14:11:38 +0000
committerVladimir Marko <vmarko@google.com>2020-02-04 16:35:55 +0000
commita2fc49d54dfa415e227cbd1b72d40ccba1582bde (patch)
tree7d953dfcb6e039140616892dcb8ba5226732d78a /tools/aapt2/java/JavaClassGenerator.cpp
parent99c83943aa868470a7d0718ce81802c2ef820374 (diff)
Clean up options for ART runtime.
The ART runtime no longer runs dex2oat directly, so all -Xcompiler-options flags are used only by JIT. As such, -Xms and -Xmx flags are useless, so we do not need to pass them. When we want to skip compilation, pass -Xnoimage-dex2oat and do not pass any other -Ximage-compiler-option. Also, since we no longer relocate to /data (patchoat has been removed), do not request -Xnorelocate as relocation in memory is OK. Pass --generate-mini-debug-info if dalvik.vm.minidebuginfo is set also as -Ximage-compiler-option. And move the check for /system/etc/boot-image.prof from AndroidRuntime.cpp to the deprecated GenerateImage() in art/runtime/gc/space/image_space.cc . If it's not found, just report the error and compile with the "speed" filter. Previously we used to set --compiler-filter=speed-profile, making the dalvik.vm.image-dex2oat-filter useless. Instead rely on dex2oat using speed-profile or speed as the default. Test: aosp_taimen-userdebug boots; check zygote args in logcat. Bug: 119800099 Change-Id: Ie019f00e3b37030920a72b1ad8944a33b8665817
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions