diff options
author | Alexander Potapenko <glider@google.com> | 2012-09-07 15:50:19 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-09-07 15:50:19 +0000 |
commit | 8e23d275ec871c16b71f3a98cc475f0db8cb3863 (patch) | |
tree | 2be68a15ec9d0a01d6fa40fd0842483de4cb2bfe /lib | |
parent | 5aabcb547a983653a754258d63e27e3790c564d3 (diff) |
Remove the infinite recursion check for now, as we don't have __thread on Mac, and TSD is an overkill.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asan/asan_rtl.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/asan/asan_rtl.cc b/lib/asan/asan_rtl.cc index 34b84f4d1..5fa4d6512 100644 --- a/lib/asan/asan_rtl.cc +++ b/lib/asan/asan_rtl.cc @@ -53,9 +53,7 @@ SANITIZER_INTERFACE_ATTRIBUTE void CheckFailed(const char *file, int line, const char *cond, u64 v1, u64 v2) { Report("AddressSanitizer CHECK failed: %s:%d \"%s\" (0x%zx, 0x%zx)\n", file, line, cond, (uptr)v1, (uptr)v2); - static __thread int recursion_count = 0; - RAW_CHECK_MSG(recursion_count == 0, "Infinite recursion detected in CHECK\n"); - recursion_count++; + // FIXME: check for infinite recursion without a thread-local counter here. PRINT_CURRENT_STACK(); ShowStatsAndAbort(); } |