diff options
author | Sebastien Hertz <shertz@google.com> | 2014-05-22 14:47:15 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-22 14:47:16 +0000 |
commit | b7c97ec6be8fa92c5593b1ab49b4a952a741c9fd (patch) | |
tree | 6723553a1592a572843fc4a7f42a1ab710217e03 /libdvm/src/main/java/dalvik | |
parent | ce478bec95ecb87fcdc25cfaaf917f13180f4660 (diff) | |
parent | 451d99525dc8fef247e6fe6f4c714cbdf7f8b322 (diff) | |
download | libcore-b7c97ec6be8fa92c5593b1ab49b4a952a741c9fd.zip libcore-b7c97ec6be8fa92c5593b1ab49b4a952a741c9fd.tar.gz libcore-b7c97ec6be8fa92c5593b1ab49b4a952a741c9fd.tar.bz2 |
Merge "Provide more information about the runtime"
Diffstat (limited to 'libdvm/src/main/java/dalvik')
-rw-r--r-- | libdvm/src/main/java/dalvik/system/VMRuntime.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libdvm/src/main/java/dalvik/system/VMRuntime.java b/libdvm/src/main/java/dalvik/system/VMRuntime.java index d532210..0b0fdc2 100644 --- a/libdvm/src/main/java/dalvik/system/VMRuntime.java +++ b/libdvm/src/main/java/dalvik/system/VMRuntime.java @@ -87,6 +87,32 @@ public final class VMRuntime { public native String vmLibrary(); /** + * Returns the VM's instruction set. + */ + public String vmInstructionSet() { + return ""; + } + + /** + * Returns the VM's internal flags. + */ + public String vmFlags() { + return ""; + } + + /** + * Returns whether the VM is running in 64-bit mode. + */ + public boolean is64Bit() { + return false; + } + + /** + * Returns whether the VM is running with JNI checking enabled. + */ + public native boolean isCheckJniEnabled(); + + /** * Gets the current ideal heap utilization, represented as a number * between zero and one. After a GC happens, the Dalvik heap may * be resized so that (size of live objects) / (size of heap) is |