final Offset sizeOffset = Offset.fromIntSignExtend(-((ObjectLayout.HEADER_SLOTS + 1) * slotSize));
final Offset flagsOffset = Offset.fromIntSignExtend(ObjectLayout.FLAGS_SLOT * slotSize);
// Setup a heap object, so the heap can initialize itself.
final Address heapPtr = start.add(headerSize);
final Word heapObjSize = Word.fromIntZeroExtend(ObjectLayout.objectAlign(heapClass
.getObjectSize()));
final Word flags = Word.fromIntZeroExtend(ObjectFlags.GC_DEFAULT_COLOR);
heapPtr.store(heapObjSize, sizeOffset);
heapPtr.store(flags, flagsOffset);
heapPtr.store(ObjectReference.fromObject(heapClass.getTIB()), vmtOffset);
helper.clear(heapPtr, heapObjSize.toInt());