If a memory access is unaligned, emit tsan_unaligned_read/write callbacks instead of tsan_read/write.
Required to change semantics of tsan_unaligned_read/write to not do the user memory. But since they were unused (other than through sanitizer_unaligned_load/store) this is fine.
Fixes long standing issue 17:
https://code.google.com/p/thread-sanitizer/issues/detail?id=17
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with one nit
test/tsan/aligned_vs_unaligned_race.cc | ||
---|---|---|
1 | do you still need deflake here? |
CHECK-LABEL, here and below