OSDN Git Service

Fix invoke-virtual not throwing ICCE in some cases
authorAlex Light <allight@google.com>
Mon, 17 Oct 2016 20:02:39 +0000 (13:02 -0700)
committerAlex Light <allight@google.com>
Mon, 17 Oct 2016 20:10:17 +0000 (13:10 -0700)
commitd6e0fa923dfe85c363408844b35e30ddcd65e199
treee26162731652d07bb40f2e20c196cdf7bd8c59e7
parentc25dfeab1a66c942ae658fc7cd367f7c1ac502a1
Fix invoke-virtual not throwing ICCE in some cases

Due to an oversight invoke-virtual on an interface method would
not cause an ICCE to be thrown if the target method is default. This
could potentially cause incorrect methods to be called at runtime.

Bug: 32201623
Test: mma test-art-host-run-test-978-virtual-interface
Change-Id: Ie565cf2fbe8602b17be0fb051e21d221a17b518f
runtime/art_method-inl.h
test/978-virtual-interface/build [new file with mode: 0755]
test/978-virtual-interface/expected.txt [new file with mode: 0644]
test/978-virtual-interface/info.txt [new file with mode: 0644]
test/978-virtual-interface/smali/Iface.smali [new file with mode: 0644]
test/978-virtual-interface/smali/Main.smali [new file with mode: 0644]
test/978-virtual-interface/smali/Subtype.smali [new file with mode: 0644]
test/978-virtual-interface/smali/Target.smali [new file with mode: 0644]