diff options
author | Brian Carlstrom <bdc@google.com> | 2014-09-29 11:26:22 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2014-09-30 16:18:20 -0700 |
commit | 75c02d71f2345d9f19e9c36dd75c3d08d9f562dc (patch) | |
tree | bc9970ea7a04c03ebafca258b8a14eca1258b6a2 | |
parent | 5e46bd928832dc638f41f9959427bef088d2184e (diff) | |
download | libcore-75c02d71f2345d9f19e9c36dd75c3d08d9f562dc.zip libcore-75c02d71f2345d9f19e9c36dd75c3d08d9f562dc.tar.gz libcore-75c02d71f2345d9f19e9c36dd75c3d08d9f562dc.tar.bz2 |
Add VMRuntime.isBootClassPathOnDisk
Bug: 17679443
Change-Id: Ib9651878c2b8bd49ccef81fe335614fce724c4d1
-rw-r--r-- | libart/src/main/java/dalvik/system/VMRuntime.java | 13 |
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 a905c71..43fa00e 100644 --- a/libart/src/main/java/dalvik/system/VMRuntime.java +++ b/libart/src/main/java/dalvik/system/VMRuntime.java @@ -336,4 +336,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(); + } |