diff options
author | Griff Hazen <griff@google.com> | 2016-12-19 19:57:09 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-12-19 19:57:09 +0000 |
commit | a03ed246f3ddedaa97457f940d2e4574e418b544 (patch) | |
tree | f463d5f3f3f0e1ad83c6930f9b8ed982f4136023 | |
parent | e7371651303f14c381d0d0ed69feac209f97edff (diff) | |
parent | fc9bec20893d50f9c92c7c25845f2f425f4de052 (diff) | |
download | android_art-a03ed246f3ddedaa97457f940d2e4574e418b544.tar.gz android_art-a03ed246f3ddedaa97457f940d2e4574e418b544.tar.bz2 android_art-a03ed246f3ddedaa97457f940d2e4574e418b544.zip |
Revert "Prune uses library classes even without profile DO NOT MERGE"
am: fc9bec2089
Change-Id: I7037166ff62642a6c75438d59182ba8ccaf111a6
-rw-r--r-- | compiler/image_writer.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/image_writer.cc b/compiler/image_writer.cc index 2d6c4dab6a..61cf00942e 100644 --- a/compiler/image_writer.cc +++ b/compiler/image_writer.cc @@ -789,13 +789,6 @@ bool ImageWriter::PruneAppImageClassInternal( result = result || PruneAppImageClassInternal(klass->GetSuperClass(), &my_early_exit, visited); - // Remove the class if the dex file is not in the set of dex files. This happens for classes that - // are from uses library if there is no profile. b/30688277 - mirror::DexCache* dex_cache = klass->GetDexCache(); - if (dex_cache != nullptr) { - result = result || - dex_file_oat_index_map_.find(dex_cache->GetDexFile()) == dex_file_oat_index_map_.end(); - } // Erase the element we stored earlier since we are exiting the function. auto it = visited->find(klass); DCHECK(it != visited->end()); |