OSDN Git Service

JIT: Don't update the dex cache of another class loader.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 19 Jul 2016 16:06:23 +0000 (17:06 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 20 Jul 2016 12:06:14 +0000 (13:06 +0100)
commitae093d69f58c2b6257c3e5b82a32c135a1f33641
tree293eab4af06af299d7b46062dcf6ea578e71f5fd
parent90e3f84cebefad6cebd8f3b86c6bac41247e49fb
JIT: Don't update the dex cache of another class loader.

This only works for properly delegating class loaders. But Java allows
non-delegating ones :(

bug:29964720

test:612-jit-dex-cache

(cherry picked from commit 491617a612c8a1c890e72d8ba780a151ddee8e11)
(cherry picked from commit a2d7cbb44e570ec0a9064dc93f57441e6ab9e45a)

Change-Id: I2523ce1fd4cd36dc83394d0f77ffc3f844e80c69
12 files changed:
compiler/optimizing/inliner.cc
test/604-hot-static-interface/hot_static_interface.cc [deleted file]
test/604-hot-static-interface/src/Main.java
test/612-jit-dex-cache/expected.txt [new file with mode: 0644]
test/612-jit-dex-cache/info.txt [new file with mode: 0644]
test/612-jit-dex-cache/src-ex/B.java [new file with mode: 0644]
test/612-jit-dex-cache/src-ex/LoadedByAppClassLoader.java [new file with mode: 0644]
test/612-jit-dex-cache/src/A.java [new file with mode: 0644]
test/612-jit-dex-cache/src/B.java [new file with mode: 0644]
test/612-jit-dex-cache/src/Main.java [new file with mode: 0644]
test/Android.libarttest.mk
test/common/runtime_state.cc