X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=datarace.cc;h=5174c042e177a52773eee7d7668e010ed38a5e54;hp=5f007f36522754960db4c4588c80ee75c2a49ad5;hb=c123ef2c7d98d23474d2d2b121b56b502d75665b;hpb=765b77b9d1dff55d4f43b03c5aef52e514a8a4cf;ds=sidebyside diff --git a/datarace.cc b/datarace.cc index 5f007f3..5174c04 100644 --- a/datarace.cc +++ b/datarace.cc @@ -201,10 +201,11 @@ void fullRaceCheckWrite(thread_id_t thread, void *location, uint64_t *shadow, Cl } /** This function does race detection on a write. */ -void raceCheckWrite(thread_id_t thread, void *location, ClockVector *currClock) +void raceCheckWrite(thread_id_t thread, void *location) { uint64_t *shadow = lookupAddressEntry(location); uint64_t shadowval = *shadow; + ClockVector *currClock = model->get_cv(thread); /* Do full record */ if (shadowval != 0 && !ISSHORTRECORD(shadowval)) { @@ -304,10 +305,11 @@ void fullRaceCheckRead(thread_id_t thread, const void *location, uint64_t *shado } /** This function does race detection on a read. */ -void raceCheckRead(thread_id_t thread, const void *location, ClockVector *currClock) +void raceCheckRead(thread_id_t thread, const void *location) { uint64_t *shadow = lookupAddressEntry(location); uint64_t shadowval = *shadow; + ClockVector *currClock = model->get_cv(thread); /* Do full record */ if (shadowval != 0 && !ISSHORTRECORD(shadowval)) {