OSDN Git Service

Put boot class loader classes and strings in dex cache of app images.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 26 Apr 2016 17:30:31 +0000 (18:30 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 25 May 2016 12:11:48 +0000 (13:11 +0100)
commitd0668f2071610b9390779550ba926c81d53bd7a0
tree977b5378f803dc9bf6a4ddfb3c97c3b45daf9e6e
parent68b6380096581019c5a0067bafb879f4481cf3dd
Put boot class loader classes and strings in dex cache of app images.

The reason for b/28295348 was that an ArtMethod of the boot image was
in the app image dex cache, but the declaring class of that
boot image method was not.

Since objects of boot images don't need fixups, the comparisons for
FixupStrings and FixupResolvedTypes was always false for them.

bug:28295348

(cherry picked from commit 1df3b55abea375671b79e3f4e6851be757a2d8a7)

Change-Id: I257b68089878ac9ab9f6fc78f726f9fb322dd884
runtime/class_linker.cc
runtime/mirror/dex_cache-inl.h