OSDN Git Service

Visit IMT of all classes during image writing
authorMathieu Chartier <mathieuc@google.com>
Mon, 16 May 2016 21:58:01 +0000 (14:58 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 17 May 2016 01:04:54 +0000 (18:04 -0700)
commit97bad1bb1e3f030acc4d264c1b1a78388402b11a
tree812ae1fd1e831b1285060dddac6f2edd3cda5f54
parent31e61f1d0aeb2c85ebddc7cd0cc3d7f1aea4014e
Visit IMT of all classes during image writing

We still need to visit the IMT for classes that does not have any
methods. It is required to visit the IMT of every class to assign
image offsets for the conflict table methods.

Added regression test.

Bug: 28707801

(cherry picked from commit 54689b7d5568dcf01ff42d69435d0af7ae4e4d8e)

Change-Id: I4806685c32df7f2707f6018e21a489bfd48af6f7
compiler/image_writer.cc
test/976-conflict-no-methods/expected.txt [new file with mode: 0644]
test/976-conflict-no-methods/info.txt [new file with mode: 0644]
test/976-conflict-no-methods/smali/Iface.smali [new file with mode: 0644]
test/976-conflict-no-methods/smali/Main.smali [new file with mode: 0644]
test/976-conflict-no-methods/smali/NoMethods.smali [new file with mode: 0644]