tsan: do not check for intersecting memory accesses in Go (all accesses are 1 byte)

llvm-svn: 174046
This commit is contained in:
Dmitry Vyukov 2013-01-31 07:47:58 +00:00
parent e7fc9ccf2e
commit 6095285d0b
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ do {
break;
goto RACE;
}
// Do the memory access intersect?
if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) {
// In Go all memory accesses are 1 byte, so there can't be no intersections.
if (kCppMode && Shadow::TwoRangesIntersect(old, cur, kAccessSize)) {
StatInc(thr, StatShadowIntersect);
if (Shadow::TidsAreEqual(old, cur)) {
StatInc(thr, StatShadowSameThread);