Duncan Sands
d4dd4dcf15
Get the unittests compiling when building with cmake and the setting
...
-DLLVM_ENABLE_THREADS=false.
llvm-svn: 181788
2013-05-14 13:29:16 +00:00
Evgeniy Stepanov
4459064d7b
Disable Initialize.MultipleThreads test under MemorySanitizer.
...
Fails due to insufficient thread stack.
llvm-svn: 178135
2013-03-27 12:50:49 +00:00
NAKAMURA Takumi
b38e0d46cb
unittests/SupportTests/Initialize.MultipleThreads: Enable pthread_attr_setstack(3) only on Linux.
...
I got blamed on darwin11;
unittests/Support/ManagedStatic.cpp:35: error: 'pthread_attr_setstack' was not declared in this scope
llvm-svn: 173355
2013-01-24 15:29:27 +00:00
NAKAMURA Takumi
a9a3c17cd4
unittests/SupportTests/Initialize.MultipleThreads: Appease --vg-leak to allocate stack explicitly for glibc.
...
llvm-svn: 173350
2013-01-24 14:44:02 +00:00
Chandler Carruth
f413c260cc
Sort the #include lines for unittest/...
...
llvm-svn: 169250
2012-12-04 10:23:08 +00:00
Nick Lewycky
d12c8cc065
Fix Windows build, don't try to #include <pthread.h> when we know it's not
...
available.
llvm-svn: 144574
2011-11-14 22:10:23 +00:00
Nick Lewycky
53185e9016
Add support for tsan annotations (thread sanitizer, a valgrind-based tool).
...
These annotations are disabled entirely when either ENABLE_THREADS is off, or
building a release build. When enabled, they add calls to functions with no
statements to ManagedStatic's getters.
Use these annotations to inform tsan that the race used inside ManagedStatic
initialization is actually benign. Thanks to Kostya Serebryany for helping
write this patch!
llvm-svn: 144567
2011-11-14 20:50:16 +00:00