summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2017-07-22 12:33:41 -0700
committerAndreas Gampe <agampe@google.com>2017-11-01 13:07:34 -0700
commita18e992770149989311c23b5222791be50b49a5d (patch)
tree578fee64a75e84ac804e5ffc2accaaf48ef9a87a /tools/aapt2/java/JavaClassGenerator.cpp
parent916c7114ae72ae98a2039ac290d9c23b1067f51a (diff)
Use the class loader context when optimizing secondary dex files
Record the class loader context for secondary dex loads and pass it to dexopt during compilation. The class loader context is passed from libcore every time a BaseDexClassLoader is created and its recorded in the package dex usage file. Note that the context may be: - unknown: if the dex file was not use after the the upgrade and its context was not yet updated - unsupported: if any of the class loaders from the loading context is unsupported (only PathClassLoader and DelegateLastClassLoader are supported). - variable: if it changes over time, form one run to another. In all the above cases the old compilation behavior is preserved for now.(i.e. the dex file with be compiled with SKIP_SHARED_LIBRARY_CHECK) (cherry picked from commit f1ff36f0f99ebb41d0c7e0f3248506a56998fa3f) Bug: 38138251 Test: runtest -x services/tests/servicestests/src/com/android/server/pm/dex/ adb shell cmd package compile -f -m quicken ^Csecondary-dex com.google.android.gms (cherry picked from commit 3bec94d78b0a66c4fa5cebd851ea33bcc51916b0) Merged-In: Ie8b78c7c0d5de43733b3d116f8dcb3a65324cca8 Change-Id: Ie8b78c7c0d5de43733b3d116f8dcb3a65324cca8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions