Add VMRuntime.isBootClassPathOnDisk
Bug: 17679443
(cherry picked from commit 75c02d71f2345d9f19e9c36dd75c3d08d9f562dc)
Change-Id: I4cf9113dfedb2981dc9ce219c96fe1f71f4e0e98
diff --git a/libart/src/main/java/dalvik/system/VMRuntime.java b/libart/src/main/java/dalvik/system/VMRuntime.java
index fca64c7..f778af0 100644
--- a/libart/src/main/java/dalvik/system/VMRuntime.java
+++ b/libart/src/main/java/dalvik/system/VMRuntime.java
@@ -340,4 +340,17 @@
public static boolean is64BitAbi(String abi) {
return is64BitInstructionSet(getInstructionSet(abi));
}
+
+ /**
+ * Return false if the boot class path for the given instruction
+ * set mapped from disk storage, versus being interpretted from
+ * dirty pages in memory.
+ */
+ public static native boolean isBootClassPathOnDisk(String instructionSet);
+
+ /**
+ * Returns the instruction set of the current runtime.
+ */
+ public static native String getCurrentInstructionSet();
+
}