Break apart the swapping of the mark and live bitmaps and zeroing of
the mark bitmap.
This paves the way for concurrent sweep.
Change-Id: I93a95188fecfd69d1d1933391a332537649206fa
diff --git a/vm/alloc/MarkSweep.c b/vm/alloc/MarkSweep.c
index 0266ada..4547770 100644
--- a/vm/alloc/MarkSweep.c
+++ b/vm/alloc/MarkSweep.c
@@ -950,6 +950,10 @@
*/
dvmHeapSourceSwapBitmaps();
+ /* The mark bits are now not needed.
+ */
+ dvmHeapSourceZeroMarkBitmap();
+
/* Clean up everything else associated with the marking process.
*/
destroyMarkStack(&markContext->stack);