offset = size;
return;
    protected final void walk(ObjectVisitor visitor, boolean locking,            Word flagsMask, Word flagsValue) {        // Go through the heap and call visit on each object        final int headerSize = this.headerSize;        final Offset sizeOffset = this.sizeOffset;        final Offset tibOffset = this.tibOffset;        final Object FREE = this.FREE;        int offset = headerSize;        final int size = getSize();        if (locking) {            while (offset < size) {                final Object tib;                final Object object;                final int objSize;                final Word flags;                lock();                try {                    final Address ptr = start.add(offset);                    object = ptr.toObjectReference().toObject();                    tib = ptr.loadObjectReference(tibOffset);                    objSize = ptr.loadInt(sizeOffset);                    flags = (flagsMask.isZero()) ? Word.zero() : VmMagic.getObjectFlags(object).and(flagsMask);                } finally {                    unlock();                }                if (tib != FREE) {                    if (flags.EQ(flagsValue)) {                        if (!visitor.visit(object)) {                            // Stop                            offset = size;                        }                    }                }                offset += objSize + headerSize;            }        } else {            while (offset < size) {                final Address ptr = start.add(offset);                final Object object = ptr.toObjectReference().toObject();                final Object tib = ptr.loadObjectReference(tibOffset);                final int objSize = ptr.loadInt(sizeOffset);                final Word flags = flagsMask.isZero() ? Word.zero() : VmMagic.getObjectFlags(object).and(flagsMask);                if (tib != FREE) {                    if (flags.EQ(flagsValue)) {                        if (!visitor.visit(object)) {                            // Stop                            offset = size;                        }                    }                }                offset += objSize + headerSize;            }        }    }