diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-07-17 18:01:48 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2013-07-18 11:53:35 -0700 |
commit | a9c53f456a72ffbf36b4da2e520e26844b11c1b4 (patch) | |
tree | d6b5940939ee80a55f0951c700ef5198cb86a110 /libart/src/main/java | |
parent | 7490f25b8ac4c69d781db62c615962620c43ebbd (diff) | |
download | libcore-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')
-rw-r--r-- | libart/src/main/java/dalvik/system/VMRuntime.java | 6 |
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(); } |