summaryrefslogtreecommitdiff
path: root/compiler/optimizing/instruction_builder.cc
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2020-12-15 19:13:19 -0800
committerCalin Juravle <calin@google.com>2021-01-05 21:51:00 +0000
commit6e6f1b2ffb243b3e5ae112bba3cd52031deb31ba (patch)
treedf7254d763ca274ed23b012e47e825a4444d1bfd /compiler/optimizing/instruction_builder.cc
parent8de1fc3a75dcc900aed271a4f654d912a8838c1d (diff)
Do not open dex files in CLC if we only need to get dexopt status
The verifying the class loader context when calling GetDexOptNeeded we only need the dex locations and the checksums. Opening the full dex files may lead to in memory extraction which is expensive and unnecessary. Add a special path in ClassLoaderContext::OpenDexFiles which will extract the locations and the checksums from the apk instead of actually opening the dex files. We re-uses the same logic in OpenDexFiles in order to avoid implementing the opening algorithm twice (which, given all the edge cases is not trivial). Bug: 169869944 Test: test-art-host Change-Id: Ic327889677ce697cd60c5c688281515b932a2a76
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
0 files changed, 0 insertions, 0 deletions