final int allocationBitmapSize = ObjectLayout
.objectAlign((allocationBits + 7) / 8);
this.allocationBitmapPtr = firstObject;
final Address bitmapPtr = this.allocationBitmapPtr;
// Make the bitmap an object, so it is easy to manipulate.
bitmapPtr.store(Word.fromIntZeroExtend(allocationBitmapSize), sizeOffset);
bitmapPtr.store(Word.fromIntZeroExtend(GC_DEFAULT_COLOR), flagsOffset);
bitmapPtr.store(ObjectReference.fromObject(VmType.getObjectClass().getTIB()), tibOffset);
firstObject = firstObject.add(allocationBitmapSize + headerSize);
helper.clear(allocationBitmapPtr, allocationBitmapSize);
this.allocationBitmap = allocationBitmapPtr.toObjectReference().toObject();