summaryrefslogtreecommitdiffstats
path: root/runtime/mem_map.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2015-01-08 11:28:13 -0800
committerMathieu Chartier <mathieuc@google.com>2015-01-08 16:02:00 -0800
commit379d09fe3c3feb7c2a2fb5a3623689b5ace7e79b (patch)
tree680b4173130057a1f70ad321eaf4cfbeba0e291c /runtime/mem_map.h
parentca7d89d09294254f16db170a53b0f8dfbf0213ac (diff)
downloadandroid_art-379d09fe3c3feb7c2a2fb5a3623689b5ace7e79b.tar.gz
android_art-379d09fe3c3feb7c2a2fb5a3623689b5ace7e79b.tar.bz2
android_art-379d09fe3c3feb7c2a2fb5a3623689b5ace7e79b.zip
Add clamp growth limit
Clamp growth limit shrinks the space memmaps to the current growth limit. This reduces virtual memory usage for apps with small heaps. Bug: 18387825 Bug: 17131630 Change-Id: I4a8fdc335d2c40492e991708adabcc46299efb7d
Diffstat (limited to 'runtime/mem_map.h')
-rw-r--r--runtime/mem_map.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/mem_map.h b/runtime/mem_map.h
index 9b003aa66c..dc337e0564 100644
--- a/runtime/mem_map.h
+++ b/runtime/mem_map.h
@@ -107,6 +107,9 @@ class MemMap {
return size_;
}
+ // Resize the mem-map by unmapping pages at the end. Currently only supports shrinking.
+ void SetSize(size_t new_size);
+
uint8_t* End() const {
return Begin() + Size();
}