forked from OSchip/llvm-project
tsan: disable flaky debug check
see the comment for details llvm-svn: 224507
This commit is contained in:
parent
06d6930b68
commit
a4cd69217b
|
@ -715,8 +715,9 @@ bool ContainsSameAccess(u64 *s, u64 a, u64 sync_epoch, bool is_write) {
|
|||
#if defined(__SSE3__) && TSAN_SHADOW_COUNT == 4
|
||||
bool res = ContainsSameAccessFast(s, a, sync_epoch, is_write);
|
||||
// NOTE: this check can fail if the shadow is concurrently mutated
|
||||
// by other threads.
|
||||
DCHECK_EQ(res, ContainsSameAccessSlow(s, a, sync_epoch, is_write));
|
||||
// by other threads. But it still can be useful if you modify
|
||||
// ContainsSameAccessFast and want to ensure that it's not completely broken.
|
||||
// DCHECK_EQ(res, ContainsSameAccessSlow(s, a, sync_epoch, is_write));
|
||||
return res;
|
||||
#else
|
||||
return ContainsSameAccessSlow(s, a, sync_epoch, is_write);
|
||||
|
|
Loading…
Reference in New Issue