OSDN Git Service

Pass the right class loader when inlining.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 28 Jul 2016 02:49:14 +0000 (03:49 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 28 Jul 2016 16:16:39 +0000 (17:16 +0100)
commitf1aedb126ad1cb56dc7a38c8e07113295b123f58
tree1ed73536af4ce231ffeb884bb9a464bb9b57ea00
parente3051bf60783fa18e6f8c7ac6f73091f05af5665
Pass the right class loader when inlining.

Otherwise, method and type resolution can resolve to the wrong
things and as a side effect update the dex cache with wrong data.

bug:30403437
test:./art/test/run-test --host --jit --dev --no-prebuild 613

(cherry picked from commit 0a210d9b108c87c0e7c1d430a92ce6fc89790c95)

Change-Id: I8fdca96fccae079c8e99b8e86e7b6935acfce89d
compiler/optimizing/inliner.cc
test/613-inlining-dex-cache/expected.txt [new file with mode: 0644]
test/613-inlining-dex-cache/info.txt [new file with mode: 0644]
test/613-inlining-dex-cache/run [new file with mode: 0644]
test/613-inlining-dex-cache/src-ex/B.java [new file with mode: 0644]
test/613-inlining-dex-cache/src-ex/LoadedByAppClassLoader.java [new file with mode: 0644]
test/613-inlining-dex-cache/src/B.java [new file with mode: 0644]
test/613-inlining-dex-cache/src/Main.java [new file with mode: 0644]