OSDN Git Service

ART: Allow oat files with duplicates classes in corner case
authorAndreas Gampe <agampe@google.com>
Thu, 30 Apr 2015 03:47:16 +0000 (20:47 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 30 Apr 2015 04:23:49 +0000 (21:23 -0700)
commit8b83b55de8abbc195c038789f1034107f4974597
tree0a2560d677ca38256b728c71c716dbbf2db0016b
parent61d7ca870b7afc5400e6f7dd2952ca06ce7f7bac
ART: Allow oat files with duplicates classes in corner case

When the oat file is actually an odex file, that is, a preopted
/system app, then it is impossible to fall back to the original
APK, as that has been stripped.

When it looks like it will be impossible to successfully open the
original dex location, grudgingly allow to open the found oat file,
even if it has duplicate classes, but warn accordingly.

Bug: 20697582

(cherry picked from commit 0cba004b97245300d7f39318d5921ee8edbef1ac)

Change-Id: I1dd459563d977a2e77806eacd03e49334d5b1f14
runtime/class_linker.cc
runtime/dex_file.cc
runtime/dex_file.h
test/138-duplicate-classes-check/build [deleted file]