diff options
author | Brian Carlstrom <bdc@google.com> | 2013-10-15 21:55:03 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-10-16 11:33:50 -0700 |
commit | 65e6acab4f777245dc73f40ecc3b42b065d21ed2 (patch) | |
tree | e91bb30f001965bc91d6de22abe60c06ba98d4e9 /libart/src/main/java/dalvik | |
parent | 46cf4fc07c8719af0128d5be5f87defd54449145 (diff) | |
download | libcore-65e6acab4f777245dc73f40ecc3b42b065d21ed2.zip libcore-65e6acab4f777245dc73f40ecc3b42b065d21ed2.tar.gz libcore-65e6acab4f777245dc73f40ecc3b42b065d21ed2.tar.bz2 |
Preload DexCaches
Bug: 11045348
Change-Id: Idbd6ad284964035a3fcf1ec360a3490f32f99d42
Diffstat (limited to 'libart/src/main/java/dalvik')
-rw-r--r-- | libart/src/main/java/dalvik/system/VMRuntime.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libart/src/main/java/dalvik/system/VMRuntime.java b/libart/src/main/java/dalvik/system/VMRuntime.java index 8f19e3a..af900c8 100644 --- a/libart/src/main/java/dalvik/system/VMRuntime.java +++ b/libart/src/main/java/dalvik/system/VMRuntime.java @@ -241,7 +241,9 @@ public final class VMRuntime { public native void trimHeap(); public native void concurrentGC(); - public void preloadDexCaches() { - // Do nothing with ART, image generation already does this. - } + /** + * Fill in dex caches with classes, fields, and methods that are + * already loaded. Typically used after Zygote preloading. + */ + public native void preloadDexCaches(); } |