for (int i = 0; i < segments.length; i++) {
offsetSegmentCheckBlocks[i] = ptr;
ptr += segments[i].checkBlockCount * CHKBlock.DATA_LENGTH;
}
if (persistent) {
<BUG>offsetSegmentStatus = new long[segments.length];</BUG>
for (int i = 0; i < segments.length; i++) {
offsetSegmentStatus[i] = ptr;
ptr += segments[i].storedStatusLength();
}
if (crossSegments != null) {
<BUG>offsetCrossSegmentStatus = new long[crossSegments.length];</BUG>
for (int i = 0; i < crossSegments.length; i++) {

for (int i = 0; i < segments.length; i++) {
offsetSegmentCheckBlocks[i] = ptr;
ptr += segments[i].checkBlockCount * CHKBlock.DATA_LENGTH;
}
if (persistent) {
for (int i = 0; i < segments.length; i++) {
offsetSegmentStatus[i] = ptr;
ptr += segments[i].storedStatusLength();
}
if (crossSegments != null) {
for (int i = 0; i < crossSegments.length; i++) {
