Duncan Sands
b33790d898
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
11820f4bf0
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
cbc86bcbb5
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
2998dcbac5
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
130cec21b9
Sort the #include lines for unittest/...
...
llvm-svn: 169250
2012-12-04 10:23:08 +00:00
Nick Lewycky
e5dc7550a5
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
fe856110aa
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