helper.clear(allocationBitmapPtr, bitmapSize);
// Go through the heap and mark all objects in the allocation bitmap.
final Word heapSizeW = Word.fromIntZeroExtend(heapSize);
final Word headerSize = Word.fromIntZeroExtend(this.headerSize);
Word offset = headerSize;
while (offset.LT(heapSizeW)) {
final Address ptr = start.add(offset);
setAllocationBit(ptr, true);
final Word objSize = ptr.loadWord(sizeOffset);
offset = offset.add(objSize).add(headerSize);
}