From ce3721057d4edf48b73de9f002b2ab5bea3d2518 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 24 Dec 2013 12:55:56 +0000 Subject: tsan: remove in_rtl counter This is intended to address the following problem. Episodically we see CHECK-failures when recursive interceptors call back into user code. Effectively we are not "in_rtl" at this point, but it's very complicated and fragile to properly maintain in_rtl property. Instead get rid of it. It was used mostly for sanity CHECKs, which basically never uncover real problems. Instead introduce ignore_interceptors flag, which is used in very few narrow places to disable recursive interceptors (e.g. during runtime initialization). llvm-svn: 197979 --- compiler-rt/lib/tsan/tests/unit/tsan_vector_test.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'compiler-rt/lib/tsan/tests/unit/tsan_vector_test.cc') diff --git a/compiler-rt/lib/tsan/tests/unit/tsan_vector_test.cc b/compiler-rt/lib/tsan/tests/unit/tsan_vector_test.cc index cfef6e528ff..c54ac1ee6de 100644 --- a/compiler-rt/lib/tsan/tests/unit/tsan_vector_test.cc +++ b/compiler-rt/lib/tsan/tests/unit/tsan_vector_test.cc @@ -17,7 +17,6 @@ namespace __tsan { TEST(Vector, Basic) { - ScopedInRtl in_rtl; Vector v(MBlockScopedBuf); EXPECT_EQ(v.Size(), (uptr)0); v.PushBack(42); @@ -30,7 +29,6 @@ TEST(Vector, Basic) { } TEST(Vector, Stride) { - ScopedInRtl in_rtl; Vector v(MBlockScopedBuf); for (int i = 0; i < 1000; i++) { v.PushBack(i); -- cgit v1.2.3