OSDN Git Service

ART: Add guards to the dex cache and its shortcuts
authorAndreas Gampe <agampe@google.com>
Thu, 31 Jul 2014 23:23:49 +0000 (16:23 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 8 Aug 2014 21:36:23 +0000 (14:36 -0700)
commit4ef12f5b0e26c6016c87866f6a33da5ed8e98d74
tree89ef8dfea38730e61dfed061a7ea71ca1a9b2a62
parent47ba978e95896c932300fb3236ce5eb4b438d971
ART: Add guards to the dex cache and its shortcuts

Do not return fields, methods or classes if the (declaring) class is
erroneous.

Bug: 16692788

(cherry picked from commit 58a5af8568d224ca7eccf2483396ff9862f8d1ee)

Change-Id: I7d3e4cb8113e2e764ed7433eed25e1031e6a0f14
13 files changed:
compiler/driver/compiler_driver.cc
runtime/class_linker-inl.h
runtime/class_linker.cc
runtime/class_linker_test.cc
runtime/entrypoints/entrypoint_utils-inl.h
runtime/entrypoints/entrypoint_utils.cc
runtime/entrypoints/portable/portable_throw_entrypoints.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/method_helper-inl.h
runtime/mirror/art_method-inl.h
runtime/mirror/art_method.h
runtime/mirror/dex_cache.h
runtime/verifier/reg_type_cache.cc