Reviewers: Alexander Potapenko, Michael Achenbach,

Description:
Introduce a tsan suppressions file

Also suppress a deliberate lock cycle in test-lockers

BUG=none
[email protected],[email protected]
LOG=n

Please review this at https://codereview.chromium.org/642023002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+10, -0 lines):
  M tools/run-tests.py
  A tools/sanitizers/tsan_suppressions.txt


Index: tools/run-tests.py
diff --git a/tools/run-tests.py b/tools/run-tests.py
index 670e574378549fade116805a0357ae839e54f5a9..410f2535ff782671178821161a6eaf62fb35ac8f 100755
--- a/tools/run-tests.py
+++ b/tools/run-tests.py
@@ -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()
Index: tools/sanitizers/tsan_suppressions.txt
diff --git a/tools/sanitizers/tsan_suppressions.txt b/tools/sanitizers/tsan_suppressions.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5d091f419818fd1661a17a568a132ba0b16ba513
--- /dev/null
+++ b/tools/sanitizers/tsan_suppressions.txt
@@ -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


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to