From 485dfb5ccb6d8b2c5d498ff6ee41b14e79103e3c Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Sun, 23 Sep 2012 16:33:32 -0700 Subject: 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 --- vm/alloc/MarkSweep.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'vm/alloc/MarkSweep.cpp') 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]); -- cgit v1.2.3