Revision: 22561
Author: [email protected]
Date: Wed Jul 23 13:14:26 2014 UTC
Log: Add tsan support to v8's gyp and test driver.
Tests only the default variant for now.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/412853002
http://code.google.com/p/v8/source/detail?r=22561
Modified:
/branches/bleeding_edge/build/standalone.gypi
/branches/bleeding_edge/tools/run-deopt-fuzzer.py
/branches/bleeding_edge/tools/run-tests.py
=======================================
--- /branches/bleeding_edge/build/standalone.gypi Wed Jul 9 11:08:26 2014
UTC
+++ /branches/bleeding_edge/build/standalone.gypi Wed Jul 23 13:14:26 2014
UTC
@@ -35,6 +35,7 @@
'component%': 'static_library',
'clang%': 0,
'asan%': 0,
+ 'tsan%': 0,
'visibility%': 'hidden',
'v8_enable_backtrace%': 0,
'v8_enable_i18n_support%': 1,
@@ -185,6 +186,27 @@
'-fsanitize=address',
],
},
+ }],
+ ['tsan==1', {
+ 'target_defaults': {
+ 'cflags+': [
+ '-fno-omit-frame-pointer',
+ '-gline-tables-only',
+ '-fsanitize=thread',
+ '-fPIC',
+ '-Wno-c++11-extensions',
+ ],
+ 'cflags!': [
+ '-fomit-frame-pointer',
+ ],
+ 'ldflags': [
+ '-fsanitize=thread',
+ '-pie',
+ ],
+ 'defines': [
+ 'THREAD_SANITIZER',
+ ],
+ },
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
or OS=="netbsd"', {
=======================================
--- /branches/bleeding_edge/tools/run-deopt-fuzzer.py Tue Jul 8 15:59:23
2014 UTC
+++ /branches/bleeding_edge/tools/run-deopt-fuzzer.py Wed Jul 23 13:14:26
2014 UTC
@@ -388,6 +388,7 @@
"no_snap": False,
"simulator": utils.UseSimulator(arch),
"system": utils.GuessOS(),
+ "tsan": False,
}
all_tests = []
num_tests = 0
=======================================
--- /branches/bleeding_edge/tools/run-tests.py Wed Jul 9 11:08:26 2014 UTC
+++ /branches/bleeding_edge/tools/run-tests.py Wed Jul 23 13:14:26 2014 UTC
@@ -213,6 +213,9 @@
default=False, action="store_true")
result.add_option("-t", "--timeout", help="Timeout in seconds",
default= -1, type="int")
+ result.add_option("--tsan",
+ help="Regard test expectations for TSAN",
+ default=False, action="store_true")
result.add_option("-v", "--verbose", help="Verbose output",
default=False, action="store_true")
result.add_option("--valgrind", help="Run tests through valgrind",
@@ -275,6 +278,9 @@
if options.asan:
options.extra_flags.append("--invoke-weak-callbacks")
+ if options.tsan:
+ VARIANTS = ["default"]
+
if options.j == 0:
options.j = multiprocessing.cpu_count()
@@ -459,6 +465,7 @@
"simulator_run": simulator_run,
"simulator": utils.UseSimulator(arch),
"system": utils.GuessOS(),
+ "tsan": options.tsan,
}
all_tests = []
num_tests = 0
--
--
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.