diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-11-25 14:26:22 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2013-11-25 17:13:27 -0800 |
commit | 0c85c33c5b400c0d32cf8c77d3bca704b7cca1e7 (patch) | |
tree | 4c4f1cb26cabbeb048a0a496024664c2f68c2bf8 /libdvm | |
parent | 1ce1e3a1ce4738d14ae3ba4c54c83f72f2b657f8 (diff) | |
download | libcore-0c85c33c5b400c0d32cf8c77d3bca704b7cca1e7.zip libcore-0c85c33c5b400c0d32cf8c77d3bca704b7cca1e7.tar.gz libcore-0c85c33c5b400c0d32cf8c77d3bca704b7cca1e7.tar.bz2 |
Add method for updating dalvik process state through VMRuntime.
Used to know when to do trimming and will be used for knowing when
to do compaction.
Bug: 8981901
Change-Id: I0f715f8c9dfc5f7399b54261fe08410449fef10e
Diffstat (limited to 'libdvm')
-rw-r--r-- | libdvm/src/main/java/dalvik/system/VMRuntime.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdvm/src/main/java/dalvik/system/VMRuntime.java b/libdvm/src/main/java/dalvik/system/VMRuntime.java index 9ae3f67..fc83948 100644 --- a/libdvm/src/main/java/dalvik/system/VMRuntime.java +++ b/libdvm/src/main/java/dalvik/system/VMRuntime.java @@ -255,6 +255,12 @@ public final class VMRuntime { public native void registerNativeFree(int bytes); /** + * Let the heap know of the new process state. This can change allocation and garbage collection + * behavior regarding trimming and compaction. + */ + public native void updateProcessState(int state); + + /** * Fill in dex caches with classes, fields, and methods that are * already loaded. Typically used after Zygote preloading. */ |