summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-05-04 11:28:03 +0100
committerDavid Brazdil <dbrazdil@google.com>2018-05-14 16:47:15 +0100
commitd527438aea93e17572e7da9c6e90b4ae3686cac1 (patch)
tree7c0599b414e71a0804aaff56eb503a6dc40fcb6d /test/ProfileTestMultiDex
parenta84ad346f6ad1be055bcc7270e154e27140f53a6 (diff)
Refactor ClassLinker & ImageWriter to use a common resolution routine
ImageWriter prepopulates DexCaches of an app image, but does resolution directly on mirror::Class rather than going through the class linker where hidden API checks happen. This patch removes the duplicate code. Similarly, ClassLinker contains multiple methods for resolving methods and fields. Consolidate these into three common routines: - FindResolvedMethod - FindResolvedField - FindResolvedFieldJLS The CL also passes the correct class loader to ImageWriter::PruneAndPreloadDexCache because it would trip a DCHECK in class linker. Bug: 78548674 Test: art/test.py Merged-In: I12e383290945d2f44b209c32e8a7617533d86063 Change-Id: I12e383290945d2f44b209c32e8a7617533d86063 (cherry picked from commit 1ab0fa89aed1100a3e6b631cb188db1d759b1efc)
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions