From 13cc256e404620c1de0cbcc4e43ce1e2dbbc4898 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 2 Dec 2012 13:20:44 +0000 Subject: Vendor import of clang release_32 branch r168974 (effectively, 3.2 RC2): http://llvm.org/svn/llvm-project/cfe/branches/release_32@168974 --- docs/ThreadSanitizer.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'docs/ThreadSanitizer.html') diff --git a/docs/ThreadSanitizer.html b/docs/ThreadSanitizer.html index 7a1d075f1e6cd..aa251c115313a 100644 --- a/docs/ThreadSanitizer.html +++ b/docs/ThreadSanitizer.html @@ -37,9 +37,8 @@ Typical slowdown introduced by ThreadSanitizer is 5x-15x (TODO: these num approximate so far).

How to build

-Follow the clang build instructions.
-Note: CMake build does not work yet. -See bug 12272. +Follow the clang build instructions. +CMake build is supported.

Supported Platforms

ThreadSanitizer is supported on Linux x86_64 (tested on Ubuntu 10.04).
@@ -49,8 +48,8 @@ Support for 32-bit platforms is problematic and not yet planned.

Usage

-Simply compile your program with -fthread-sanitizer -fPIE and link it -with -fthread-sanitizer -pie.
+Simply compile your program with -fsanitize=thread -fPIE and link it +with -fsanitize=thread -pie.
To get a reasonable performance add -O1 or higher.
Use -g to get file names and line numbers in the warning messages.
@@ -73,7 +72,7 @@ int main() {
-% clang -fthread-sanitizer -g -O1 tiny_race.c -fPIE -pie
+% clang -fsanitize=thread -g -O1 tiny_race.c -fPIE -pie
 
If a bug is detected, the program will print an error message to stderr. @@ -111,7 +110,9 @@ This means that tools like ulimit may not work as usually expected. ThreadSanitizer is in alpha stage. It is known to work on large C++ programs using pthreads, but we do not promise anything (yet).
-C++11 threading is not yet supported. +C++11 threading is not yet supported.
+The test suite is integrated into CMake build and can be run with +make check-tsan command.
We are actively working on enhancing the tool -- stay tuned. Any help, especially in the form of minimized standalone tests is more than welcome. -- cgit v1.2.3