OSDN Git Service

ART: Add miranda checking
authorAndreas Gampe <agampe@google.com>
Sat, 1 Nov 2014 01:12:30 +0000 (18:12 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 3 Nov 2014 22:44:14 +0000 (14:44 -0800)
commit1d0611c7e6721bd9115d652da74d2584ff3f192b
tree2d2b1137a23fbff8bd51487956c6c3c3d287bdda
parent471ee4410de01d2960e78d56a11ae2cc32f5e7bd
ART: Add miranda checking

Add a test for resolution of miranda methods across dex-files. See
CL 112688 and b/18193682 for the code change.

Fix the test script to support no-verify again.

Weaken the dex cache check to a check whether the found method is a
miranda method. This will penalize miranda methods, as they will
always have to be resolved by name, but does not require the multi-step
load of the method's dex cache.

Bug: 18193682

(cherry picked from commit 2b0fa5ba4a8f07ee243452003bf93418d30e9448)

Change-Id: I1dae2a9ec0985dc8625acd7dd5686a5d3cdc8888
18 files changed:
runtime/mirror/class.cc
test/040-miranda/src/Main.java
test/040-miranda/src/MirandaAbstract.java
test/040-miranda/src/MirandaClass.java
test/040-miranda/src/MirandaClass2.java
test/126-miranda-multidex/build [new file with mode: 0644]
test/126-miranda-multidex/expected.txt [new file with mode: 0644]
test/126-miranda-multidex/info.txt [new file with mode: 0644]
test/126-miranda-multidex/run [new file with mode: 0755]
test/126-miranda-multidex/src/Main.java [new file with mode: 0644]
test/126-miranda-multidex/src/MirandaAbstract.java [new file with mode: 0644]
test/126-miranda-multidex/src/MirandaClass.java [new file with mode: 0644]
test/126-miranda-multidex/src/MirandaClass2.java [new file with mode: 0644]
test/126-miranda-multidex/src/MirandaInterface.java [new file with mode: 0644]
test/126-miranda-multidex/src/MirandaInterface2.java [new file with mode: 0644]
test/etc/host-run-test-jar
test/etc/push-and-run-prebuilt-test-jar
test/etc/push-and-run-test-jar