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 02:51:29 +0000 (03:51 +0100)
commit0a210d9b108c87c0e7c1d430a92ce6fc89790c95
tree25e24c05254ebb56fc04c7cff4b8d81791fb3682
parent2114993e9aa511305bbbdb59d96d2ae0973efbc7
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
Change-Id: I23f94486f51c65e0a1328c6185b36084627e09b3
test:./art/test/run-test --host --jit --dev --no-prebuild 613
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]