OSDN Git Service

Revert "Revert "Fix ArtMethod::GetInvokeType for static methods on interfaces.""
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 7 Jun 2016 14:14:37 +0000 (14:14 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 7 Jun 2016 16:29:50 +0000 (17:29 +0100)
commit2f116815ae4344c30a9eab1984563b3d969bd769
treee57d5d01707364e0fcd11d03f5778018182de889
parentf102faf1bcbdb2149e3e7bf27b1819f621b7894b
Revert "Revert "Fix ArtMethod::GetInvokeType for static methods on interfaces.""

bug:29089267
bug:27521545

We were hitting a compiler DCHECK that a class would never require to
do access checks on itself. The reason was that the compiler driver
was not trying to resolve a type, but instead relied on the verifier
for pre-populating the dex cache. However, the verifier doesn't
necessarily run in JIT mode.

This reverts commit 12abcbd950bd0ff4528e2e0d27ca5e881c7b0467.

(cherry picked from commit 3aaf9645639ff56fbfe49a981242cbda01d6796e)

Change-Id: I2f0de6e4f00f336dc61b2378054fb6d27a7298d0
compiler/optimizing/optimizing_compiler.cc