summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-12-24 12:55:56 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-12-24 12:55:56 +0000
commitce3721057d4edf48b73de9f002b2ab5bea3d2518 (patch)
tree8b1ec48df14209666343213f9b28bc9f4af2c5e3 /compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
parent27aea0b0b78ba51f344a3c9188ddf053b1e3b14e (diff)
downloadbcm5719-llvm-ce3721057d4edf48b73de9f002b2ab5bea3d2518.tar.gz
bcm5719-llvm-ce3721057d4edf48b73de9f002b2ab5bea3d2518.zip
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
Diffstat (limited to 'compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc')
-rw-r--r--compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc b/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
index 2e0a7d1b72b..f8c621e3b64 100644
--- a/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
+++ b/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cc
@@ -18,7 +18,6 @@
namespace __tsan {
TEST(Flags, Basic) {
- ScopedInRtl in_rtl;
// At least should not crash.
Flags f;
InitializeFlags(&f, 0);
@@ -26,7 +25,6 @@ TEST(Flags, Basic) {
}
TEST(Flags, DefaultValues) {
- ScopedInRtl in_rtl;
Flags f;
f.enable_annotations = false;
@@ -206,7 +204,6 @@ extern "C" const char *__tsan_default_options() {
}
TEST(Flags, ParseDefaultOptions) {
- ScopedInRtl in_rtl;
Flags f;
test_default_options = options1;
@@ -219,7 +216,6 @@ TEST(Flags, ParseDefaultOptions) {
}
TEST(Flags, ParseEnvOptions) {
- ScopedInRtl in_rtl;
Flags f;
InitializeFlags(&f, options1);
@@ -230,7 +226,6 @@ TEST(Flags, ParseEnvOptions) {
}
TEST(Flags, ParsePriority) {
- ScopedInRtl in_rtl;
Flags f;
test_default_options = options2;
OpenPOWER on IntegriCloud