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)
committerBrian Carlstrom <bdc@google.com>
Thu, 21 Jul 2016 05:50:05 +0000 (22:50 -0700)
commite50a7b834b91564abc8dda32f2fbf8683e650df5
treeaa89726dea7b088258981de2713e6685390ee928
parent2b8b6040d0d34f40e3db71f0e4b1c369fd1f02c6
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)

(cherry picked from commit ae093d69f58c2b6257c3e5b82a32c135a1f33641)

Change-Id: I73df55286a9bdb3f96963e0756e3a8b784aa9077
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