summaryrefslogtreecommitdiffstats
path: root/vm/alloc/MarkSweep.cpp
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/alloc/MarkSweep.cpp
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/alloc/MarkSweep.cpp')
-rw-r--r--vm/alloc/MarkSweep.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/vm/alloc/MarkSweep.cpp b/vm/alloc/MarkSweep.cpp
index 268d88085..eb739e552 100644
--- a/vm/alloc/MarkSweep.cpp
+++ b/vm/alloc/MarkSweep.cpp
@@ -556,9 +556,7 @@ static void scanGrayObjects(GcMarkContext *ctx)
{
GcHeap *h = gDvm.gcHeap;
const u1 *base, *limit, *ptr, *dirty;
- size_t footprint;
- footprint = dvmHeapSourceGetValue(HS_FOOTPRINT, NULL, 0);
base = &h->cardTableBase[0];
limit = dvmCardFromAddr((u1 *)dvmHeapSourceGetLimit());
assert(limit <= &h->cardTableBase[h->cardTableLength]);