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 /libdvm | |
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 'libdvm')
-rw-r--r-- | libdvm/src/main/java/dalvik/system/VMRuntime.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libdvm/src/main/java/dalvik/system/VMRuntime.java b/libdvm/src/main/java/dalvik/system/VMRuntime.java index 8ee607c..fb77bed 100644 --- a/libdvm/src/main/java/dalvik/system/VMRuntime.java +++ b/libdvm/src/main/java/dalvik/system/VMRuntime.java @@ -237,4 +237,11 @@ public final class VMRuntime { * Registers a native free by reducing the number of native bytes accounted for. */ public native void registerNativeFree(int bytes); + + /* + * Updates the internal process state of the VM. You can find the process states in + * ActivityManager. + */ + public native void updateProcessState(int newProcessState); + } |