[PATCH] D18378: Fix test failure on unrelated warnings.
Yabin Cui via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 16:45:03 PDT 2016
yabinc updated this revision to Diff 51363.
yabinc added a comment.
Fix mutex_cycle2.c.
http://reviews.llvm.org/D18378
Files:
lib/tsan/rtl/tsan_platform_linux.cc
test/tsan/cond_cancel.c
test/tsan/mutex_cycle2.c
Index: test/tsan/mutex_cycle2.c
===================================================================
--- test/tsan/mutex_cycle2.c
+++ test/tsan/mutex_cycle2.c
@@ -24,7 +24,7 @@
pthread_mutex_lock(&mu2);
pthread_mutex_lock(&mu1);
// CHECK: ThreadSanitizer: lock-order-inversion (potential deadlock)
- // DISABLED-NOT: ThreadSanitizer
+ // DISABLED-NOT: ThreadSanitizer:
// DISABLED: PASS
pthread_mutex_unlock(&mu1);
pthread_mutex_unlock(&mu2);
Index: test/tsan/cond_cancel.c
===================================================================
--- test/tsan/cond_cancel.c
+++ test/tsan/cond_cancel.c
@@ -1,5 +1,5 @@
// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
-// CHECK-NOT: WARNING
+// CHECK-NOT: WARNING: ThreadSanitizer:
// CHECK: OK
// This test is failing on powerpc64 (VMA=44). After calling pthread_cancel,
// the Thread-specific data destructors are not called, so the destructor
Index: lib/tsan/rtl/tsan_platform_linux.cc
===================================================================
--- lib/tsan/rtl/tsan_platform_linux.cc
+++ lib/tsan/rtl/tsan_platform_linux.cc
@@ -296,7 +296,7 @@
// linux kernel, the random gap between stack and mapped area is increased
// from 128M to 36G on 39-bit aarch64. As it is almost impossible to cover
// this big range, we should disable randomized virtual space on aarch64.
-#if defined(__aarch64__)
+#if 1 //defined(__aarch64__)
int old_personality = personality(0xffffffff);
if (old_personality != -1 && (old_personality & ADDR_NO_RANDOMIZE) == 0) {
Report("WARNING: Program is run with randomized virtual address space,"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18378.51363.patch
Type: text/x-patch
Size: 1647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160322/db6835ad/attachment-0001.bin>
More information about the llvm-commits
mailing list