tsan: do not check for intersecting memory accesses in Go (all accesses are 1 byte)
llvm-svn: 174046
This commit is contained in:
parent
e7fc9ccf2e
commit
6095285d0b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue