Preload DexCaches

Bug: 11045348
Change-Id: Id27333652d4b3b9ace6c1cdf0566bf39bf0084ed
This commit is contained in:
Brian Carlstrom
2013-10-07 17:47:37 -07:00
parent b3a69c5dc3
commit 6c3baf12e0

View File

@@ -322,6 +322,9 @@ public class ZygoteInit {
// Restore default.
runtime.setTargetHeapUtilization(defaultUtilization);
// Fill in dex caches with classes, fields, and methods brought in by preloading.
runtime.preloadDexCaches();
Debug.stopAllocCounting();
// Bring back root. We'll need it later.