OSDN Git Service

[framework] Compile secondary dex files in isolation
authorCalin Juravle <calin@google.com>
Wed, 4 Oct 2017 17:53:09 +0000 (10:53 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 2 Nov 2017 16:37:15 +0000 (09:37 -0700)
commit8a5a708df18c2377c7ec3cb03d406bdc9cb99bd6
tree131c095624cf82a5d16c4a60fc4344e7dff9d953
parente131dac848cb4d0998e1dee2219382250c71d277
[framework] Compile secondary dex files in isolation

The class loader context adds the overhead of extracting in-memory and
possibly extra verification which is being frowned upon when the loading
happens on the UI thread. Revert the correct fix of compiling secondary
dex files with their loading context until b/64530081 is done.

Partial revert of commit f1ff36f0f99ebb41d0c7e0f3248506a56998fa3f.

(cherry picked from commit 27f926212483e8291a63884e60fa44de4d0df17c)

Test: adb shell cmd package compile -m quicken -f --secondary-dex
com.google.android.gms
Bug: 64530081
Bug: 66984396
Merged-In: Ib2815ce67b224883fe95c28d1424103e56342c6e
Change-Id: Ib2815ce67b224883fe95c28d1424103e56342c6e
services/core/java/com/android/server/pm/PackageDexOptimizer.java