From e2fd4b107cd9cb0f40c5786d8229bd5f24802046 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 20 Sep 2016 13:30:01 +0000 Subject: [PATCH] tsan: check more addresses in CheckShadowMapping There is still a handful of them, so should not slow down tsan apps. But gives assurance if we change/complicate shadow mappings. llvm-svn: 281970 --- compiler-rt/lib/tsan/rtl/tsan_rtl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc index 8fe9bf8..8a45ae4 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl.cc @@ -292,7 +292,7 @@ static void CheckShadowMapping() { if (beg ==end) continue; VPrintf(3, "checking shadow region %p-%p\n", beg, end); - for (uptr p0 = beg; p0 <= end; p0 += (end - beg) / 4) { + for (uptr p0 = beg; p0 <= end; p0 += (end - beg) / 16) { for (int x = -1; x <= 1; x++) { const uptr p = p0 + x; if (p < beg || p >= end) -- 2.7.4