summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libart/src/main/java/dalvik/system/VMRuntime.java8
-rw-r--r--libdvm/src/main/java/dalvik/system/VMRuntime.java3
2 files changed, 7 insertions, 4 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();
}
diff --git a/libdvm/src/main/java/dalvik/system/VMRuntime.java b/libdvm/src/main/java/dalvik/system/VMRuntime.java
index e1b4a00..ca1c8aa 100644
--- a/libdvm/src/main/java/dalvik/system/VMRuntime.java
+++ b/libdvm/src/main/java/dalvik/system/VMRuntime.java
@@ -239,7 +239,8 @@ public final class VMRuntime {
public native void registerNativeFree(int bytes);
/**
- * Fill in dex caches with classes, fields, and methods that are already loaded.
+ * Fill in dex caches with classes, fields, and methods that are
+ * already loaded. Typically used after Zygote preloading.
*/
public native void preloadDexCaches();
}