diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-01-08 12:39:28 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-01-08 14:41:54 -0800 |
commit | 26408c2c83bf134adb32b992feb74753824682b3 (patch) | |
tree | 3d05399f61821116d3dcc5afebeb9109475b6065 /libart | |
parent | 2bec0e7565816cdcc86be312cc473904ef52db4e (diff) | |
download | libcore-26408c2c83bf134adb32b992feb74753824682b3.zip libcore-26408c2c83bf134adb32b992feb74753824682b3.tar.gz libcore-26408c2c83bf134adb32b992feb74753824682b3.tar.bz2 |
Add VMRuntime.clampGrowthLimit
Used to release virtual memory for apps with small heaps according
to manifest.
Bug: 18387825
Bug: 17131630
Change-Id: I73cf18c80e7ce76bd627e5a9439dec4277c6af2d
Diffstat (limited to 'libart')
-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 b054fb3..b885ed2 100644 --- a/libart/src/main/java/dalvik/system/VMRuntime.java +++ b/libart/src/main/java/dalvik/system/VMRuntime.java @@ -276,6 +276,12 @@ public final class VMRuntime { public native void clearGrowthLimit(); /** + * Make the current growth limit the new non growth limit capacity by releasing pages which + * are after the growth limit but before the non growth limit capacity. + */ + public native void clampGrowthLimit(); + + /** * Returns true if either a Java debugger or native debugger is active. */ public native boolean isDebuggerActive(); |