Introduce a tsan suppressions file
authorjochen@chromium.org <jochen@chromium.org>
Thu, 9 Oct 2014 09:32:04 +0000 (09:32 +0000)
committerjochen@chromium.org <jochen@chromium.org>
Thu, 9 Oct 2014 09:32:04 +0000 (09:32 +0000)
Also suppress a deliberate lock cycle in test-lockers

BUG=none
R=glider@chromium.org, machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/642023002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24484 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

tools/run-tests.py
tools/sanitizers/tsan_suppressions.txt [new file with mode: 0644]

index 670e574..410f253 100755 (executable)
@@ -305,6 +305,11 @@ def ProcessOptions(options):
 
   if options.tsan:
     VARIANTS = ["default"]
+    suppressions_file = os.path.join(os.path.dirname(os.path.abspath(__file__)),
+                                     'sanitizers', 'tsan_suppressions.txt')
+    tsan_options = '%s suppressions=%s' % (
+        os.environ.get('TSAN_OPTIONS', ''), suppressions_file)
+    os.environ['TSAN_OPTIONS'] = tsan_options
 
   if options.j == 0:
     options.j = multiprocessing.cpu_count()
diff --git a/tools/sanitizers/tsan_suppressions.txt b/tools/sanitizers/tsan_suppressions.txt
new file mode 100644 (file)
index 0000000..b97caf3
--- /dev/null
@@ -0,0 +1,5 @@
+# Suppressions for TSan v2
+# https://code.google.com/p/thread-sanitizer/wiki/Suppressions
+
+# Deliberate lock cycles in test-lockers
+deadlock:LockAndUnlockDifferentIsolatesThread::Run