summaryrefslogtreecommitdiffstats
path: root/vm/Globals.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2012-09-23 16:33:32 -0700
committerIan Rogers <irogers@google.com>2012-09-24 19:28:58 -0700
commit485dfb5ccb6d8b2c5d498ff6ee41b14e79103e3c (patch)
tree1cdfb4ef49d8fa9b3b9c18e3a299b0d51b3296ef /vm/Globals.h
parent067c62027dc592224e1ae16f9847b7273d3e4026 (diff)
downloadandroid_dalvik-485dfb5ccb6d8b2c5d498ff6ee41b14e79103e3c.tar.gz
android_dalvik-485dfb5ccb6d8b2c5d498ff6ee41b14e79103e3c.tar.bz2
android_dalvik-485dfb5ccb6d8b2c5d498ff6ee41b14e79103e3c.zip
Allow max free size of heap to be configured.
This allows the max free to be larger on devices with more memory and thereby avoid GCs (that may be more frequent due to larger bitmaps). b/6606849 Change-Id: I4063a303ea4be3c1f227259d699fb238a806451f
Diffstat (limited to 'vm/Globals.h')
-rw-r--r--vm/Globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/Globals.h b/vm/Globals.h
index 3bef86533..565c92a65 100644
--- a/vm/Globals.h
+++ b/vm/Globals.h
@@ -90,6 +90,9 @@ struct DvmGlobals {
size_t heapStartingSize;
size_t heapMaximumSize;
size_t heapGrowthLimit;
+ double heapTargetUtilization;
+ size_t heapMinFree;
+ size_t heapMaxFree;
size_t stackSize;
size_t mainThreadStackSize;