summaryrefslogtreecommitdiffstats
path: root/libsanitizer/tsan/tsan_update_shadow_word_inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsanitizer/tsan/tsan_update_shadow_word_inl.h')
-rw-r--r--libsanitizer/tsan/tsan_update_shadow_word_inl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsanitizer/tsan/tsan_update_shadow_word_inl.h b/libsanitizer/tsan/tsan_update_shadow_word_inl.h
index b9aa51c7957..42caf80d349 100644
--- a/libsanitizer/tsan/tsan_update_shadow_word_inl.h
+++ b/libsanitizer/tsan/tsan_update_shadow_word_inl.h
@@ -55,8 +55,7 @@ do {
goto RACE;
}
// Do the memory access intersect?
- // In Go all memory accesses are 1 byte, so there can be no intersections.
- if (kCppMode && Shadow::TwoRangesIntersect(old, cur, kAccessSize)) {
+ if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) {
StatInc(thr, StatShadowIntersect);
if (Shadow::TidsAreEqual(old, cur)) {
StatInc(thr, StatShadowSameThread);
OpenPOWER on IntegriCloud