datarace: redirect "Data race @ ..." messages to model-checker bug list
authorBrian Norris <banorris@uci.edu>
Fri, 16 Nov 2012 22:38:26 +0000 (14:38 -0800)
committerBrian Norris <banorris@uci.edu>
Fri, 16 Nov 2012 22:38:26 +0000 (14:38 -0800)
commit122aad1259a2df612ad39c640551be8da9cb26b9
treeb6477bdefe29e07267cdffd8c7bf7be16ad2f2fc
parent3133d403d1abd0ac735b4d4662708fcef1cb5d5f
datarace: redirect "Data race @ ..." messages to model-checker bug list

Data race information was previously printed in multiple ways: through
the datarace.cc printRace() method and through the model-checker
assert_bug() method. Start unifying that.

Other notes:
- Data race objects probably should be freed (even though they are
  snapshotted). I fix this.
- Races could be printed more than once previously, since the
  unrealizedraces vector was never cleared of realized races. Now, we
  clear this vector every time we process it (in a feasible execution),
  either stashing a bug message or dropping the race entirely.
datarace.cc
datarace.h