summaryrefslogtreecommitdiffstats
path: root/libart/src/main/java/dalvik
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2013-07-17 18:01:48 -0700
committerMathieu Chartier <mathieuc@google.com>2013-07-18 11:53:35 -0700
commita9c53f456a72ffbf36b4da2e520e26844b11c1b4 (patch)
treed6b5940939ee80a55f0951c700ef5198cb86a110 /libart/src/main/java/dalvik
parent7490f25b8ac4c69d781db62c615962620c43ebbd (diff)
downloadlibcore-a9c53f456a72ffbf36b4da2e520e26844b11c1b4.zip
libcore-a9c53f456a72ffbf36b4da2e520e26844b11c1b4.tar.gz
libcore-a9c53f456a72ffbf36b4da2e520e26844b11c1b4.tar.bz2
Add updateProcessState to VMRuntime
This process state will be used for determining GC behavior. Change-Id: I2dde66a79d8fa835a7ed2499bd37069c6062f84b
Diffstat (limited to 'libart/src/main/java/dalvik')
-rw-r--r--libart/src/main/java/dalvik/system/VMRuntime.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/libart/src/main/java/dalvik/system/VMRuntime.java b/libart/src/main/java/dalvik/system/VMRuntime.java
index acd9a0f..85ca6af 100644
--- a/libart/src/main/java/dalvik/system/VMRuntime.java
+++ b/libart/src/main/java/dalvik/system/VMRuntime.java
@@ -223,6 +223,12 @@ public final class VMRuntime {
*/
public native boolean isDebuggerActive();
+ /*
+ * Updates the internal process state of the VM. You can find the process states in
+ * ActivityManager.
+ */
+ public native void updateProcessState(int newProcessState);
+
public native void trimHeap();
public native void concurrentGC();
}