diff options
| author | 2015-06-03 19:54:30 +0000 | |
|---|---|---|
| committer | 2015-06-03 19:54:31 +0000 | |
| commit | 2519fc40d4ae89322d28d1ff610fe81bb90fb564 (patch) | |
| tree | 37bb34ad49586683c78e7c44a589d0e07b875270 /compiler | |
| parent | 1710bf308c1465d2130547c0aa9066d28d57648b (diff) | |
| parent | 8ac75952f13f0a80803628f0c2aa06120ad42126 (diff) | |
Merge "ART: Prune FindArrayClass cache in image writer"
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/image_writer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/image_writer.cc b/compiler/image_writer.cc index 11743f3f1b..32bde8e3b4 100644 --- a/compiler/image_writer.cc +++ b/compiler/image_writer.cc @@ -718,6 +718,9 @@ void ImageWriter::PruneNonImageClasses() { // contains data only valid during a real run. dex_cache->SetFieldObject<false>(mirror::DexCache::DexOffset(), nullptr); } + + // Drop the array class cache in the ClassLinker, as these are roots holding those classes live. + class_linker->DropFindArrayClassCache(); } bool ImageWriter::NonImageClassesVisitor(Class* klass, void* arg) { |