Now that checkDataRaces() handles all bug reporting and assertions on
its own, we don't need an additional bug report message printed by the
caller. In some cases, this means the caller doesn't have any action to
take. In one case (a race immediately-realized from a user thread), we
still need to "bail out" to the model-checker.
/* If the race is realized, bail out now. */
if (checkDataRaces())
- model->assert_bug("Data race", true);
+ model->switch_to_master(NULL);
}
/**
if (is_deadlocked())
assert_bug("Deadlock detected");
- print_bugs();
checkDataRaces();
+ print_bugs();
printf("\n");
print_stats();
print_summary();
}
/* See if we have realized a data race */
- if (checkDataRaces())
- assert_bug("Data race");
+ checkDataRaces();
}
/**
}
// If we resolved promises or data races, see if we have realized a data race.
- if (checkDataRaces())
- assert_bug("Data race");
+ checkDataRaces();
return updated;
}