From 852d9339528720340e14451fbd4ad1795fb9e7e4 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Mon, 29 Sep 2014 11:26:22 -0700 Subject: Add VMRuntime.isBootClassPathOnDisk Bug: 17679443 (cherry picked from commit 75c02d71f2345d9f19e9c36dd75c3d08d9f562dc) Change-Id: I4cf9113dfedb2981dc9ce219c96fe1f71f4e0e98 --- libart/src/main/java/dalvik/system/VMRuntime.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libart') 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(); + } -- cgit v1.1