record->thread = (thread_id_t *)snapshot_malloc(sizeof(thread_id_t) * record->capacity);
record->readClock = (modelclock_t *)snapshot_malloc(sizeof(modelclock_t) * record->capacity);
record->numReads = 1;
+ ASSERT(readThread >= 0);
record->thread[0] = readThread;
record->readClock[0] = readClock;
}
if (clock_may_race(currClock, thread, readClock, readThread)) {
/* Still need this read in vector */
if (copytoindex != i) {
+ ASSERT(record->thread[i] >= 0);
record->readClock[copytoindex] = record->readClock[i];
record->thread[copytoindex] = record->thread[i];
}
modelclock_t ourClock = currClock->getClock(thread);
+ ASSERT(thread >= 0);
record->thread[copytoindex] = thread;
record->readClock[copytoindex] = ourClock;
record->numReads = copytoindex + 1;