summaryrefslogtreecommitdiffstats
path: root/libart
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-09-29 11:26:22 -0700
committerBrian Carlstrom <bdc@google.com>2014-09-30 21:49:58 -0700
commit852d9339528720340e14451fbd4ad1795fb9e7e4 (patch)
treeefafee1f5e3a68fb9032ca2b0bdcca06998b779b /libart
parent3a025d3db9334bab5e1e80da7c69a5f69cdd2f84 (diff)
downloadlibcore-852d9339528720340e14451fbd4ad1795fb9e7e4.zip
libcore-852d9339528720340e14451fbd4ad1795fb9e7e4.tar.gz
libcore-852d9339528720340e14451fbd4ad1795fb9e7e4.tar.bz2
Add VMRuntime.isBootClassPathOnDisk
Bug: 17679443 (cherry picked from commit 75c02d71f2345d9f19e9c36dd75c3d08d9f562dc) Change-Id: I4cf9113dfedb2981dc9ce219c96fe1f71f4e0e98
Diffstat (limited to 'libart')
-rw-r--r--libart/src/main/java/dalvik/system/VMRuntime.java13
1 files changed, 13 insertions, 0 deletions
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 final class VMRuntime {
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();
+
}