OSDN Git Service

vdex optimization: avoid doing application type resolution.
authorNicolas Geoffray <ngeoffray@google.com>
Wed, 18 Jan 2017 14:34:48 +0000 (14:34 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 19 Jan 2017 11:34:51 +0000 (11:34 +0000)
commit865cf901e9f16680ca3594a5ab8d8e17b0b6f9d4
treedb540e1ed15f55491344c7399fbe46b13a21eb9a
parent4507fdcb70bd570d5f3968061bf991f0a1233a93
vdex optimization: avoid doing application type resolution.

When looking up for methods/fields, we can take the class
that was originally found as holding the method. If a subclass
of that class ends up redefining it after an OTA, it cannot
alter the expected flags anyways (eg a public method cannot be
overridden with a non-public method).

bug: 30937355
test: test-art-host
Change-Id: Ie3fbe0e829a27db61c534c4a49e945cc1afed9b9
compiler/verifier_deps_test.cc
runtime/verifier/verifier_deps.cc