diff options
Diffstat (limited to 'vm/alloc/MarkSweep.cpp')
-rw-r--r-- | vm/alloc/MarkSweep.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/alloc/MarkSweep.cpp b/vm/alloc/MarkSweep.cpp index d4f4669ba..268d88085 100644 --- a/vm/alloc/MarkSweep.cpp +++ b/vm/alloc/MarkSweep.cpp @@ -560,7 +560,7 @@ static void scanGrayObjects(GcMarkContext *ctx) footprint = dvmHeapSourceGetValue(HS_FOOTPRINT, NULL, 0); base = &h->cardTableBase[0]; - limit = dvmCardFromAddr((u1 *)dvmHeapSourceGetBase() + footprint); + limit = dvmCardFromAddr((u1 *)dvmHeapSourceGetLimit()); assert(limit <= &h->cardTableBase[h->cardTableLength]); ptr = base; |