summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2022-11-23 10:57:22 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2022-11-25 16:38:58 +0000
commitc372e79522f8126d241a6f6b52fc9a1145b03d1e (patch)
tree21f9d050e3fa5b41c93b557438b5dfb5cd143498 /compiler/optimizing/graph_visualizer.cc
parent4f301422a579fee785849afadd623c180da32e61 (diff)
Make ArtDexFileLoader accept an zip file with no dex code.
We pass config split APKs as part of the class loader context to OatFileAssistant, in both the legacy dexopt code path and the new ART Services code path. Those config split APKs eventually go to ArtDexFileLoader. Therefore, ArtDexFileLoader should not regard this as an error. Before this change, this was regarded as an error. The legacy dexopt code path could work because it uses the legacy `DexFile.GetDexOptNeeded` Java API, which doesn't check the result of opening dex files. The new ART Services code path couldn't work because it checks the result. Bug: 229268202 Test: m test-art-host-gtest Test: (on internal master) - 1. Run `pm art optimize-package` for a split APK that depends on a config split APK. 2. See dexopt being successful. Change-Id: I08a2a5ad7bea82c3f534ed4de2935fc400652361
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions