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)
committergitbuildkicker <android-build@google.com>
Thu, 28 Jul 2016 22:06:58 +0000 (15:06 -0700)
commit64f25fddcf9361064acfabb05bcd26e6a260dd51
tree25e24c05254ebb56fc04c7cff4b8d81791fb3682
parentebfb17e81bb516d1d80002b38d5563c59c765330
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]