39cd216f8f 
								
							 
						 
						
							
							
								
								Re-apply r211287: Remove support for LLVM runtime multi-threading.  
							
							... 
							
							
							
							I'll fix the problems in libclang and other projects in ways that don't
require <mutex> until we sort out the cygwin situation.
llvm-svn: 211900 
							
						 
						
							2014-06-27 15:13:01 +00:00  
				
					
						
							
							
								 
						
							
								104e5f67e2 
								
							 
						 
						
							
							
								
								Revert r211287, "Remove support for LLVM runtime multi-threading."  
							
							... 
							
							
							
							libclang still requires it on cygming, lack of incomplete <mutex>.
llvm-svn: 211592 
							
						 
						
							2014-06-24 13:36:31 +00:00  
				
					
						
							
							
								 
						
							
								9c9710eaf4 
								
							 
						 
						
							
							
								
								Remove support for LLVM runtime multi-threading.  
							
							... 
							
							
							
							After a number of previous small iterations, the functions
llvm_start_multithreaded() and llvm_stop_multithreaded() have
been reduced essentially to no-ops.  This change removes them
entirely.
Reviewed by: rnk, dblaikie
Differential Revision: http://reviews.llvm.org/D4216 
llvm-svn: 211287 
							
						 
						
							2014-06-19 18:18:23 +00:00  
				
					
						
							
							
								 
						
							
								ccbf3d01f0 
								
							 
						 
						
							
							
								
								Revert r211066, 211067, 211068, 211069, 211070.  
							
							... 
							
							
							
							These were committed accidentally from the wrong branch before having
a review sign-off.
llvm-svn: 211072 
							
						 
						
							2014-06-16 22:49:41 +00:00  
				
					
						
							
							
								 
						
							
								0f2c641f86 
								
							 
						 
						
							
							
								
								Remove some more code out into a separate CL.  
							
							... 
							
							
							
							llvm-svn: 211067 
							
						 
						
							2014-06-16 22:40:17 +00:00  
				
					
						
							
							
								 
						
							
								66f09ad041 
								
							 
						 
						
							
							
								
								[C++11] Use 'nullptr'.  
							
							... 
							
							
							
							llvm-svn: 210442 
							
						 
						
							2014-06-08 22:29:17 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								11820f4bf0 
								
							 
						 
						
							
							
								
								Disable Initialize.MultipleThreads test under MemorySanitizer.  
							
							... 
							
							
							
							Fails due to insufficient thread stack.
llvm-svn: 178135 
							
						 
						
							2013-03-27 12:50:49 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								130cec21b9 
								
							 
						 
						
							
							
								
								Sort the #include lines for unittest/...  
							
							... 
							
							
							
							llvm-svn: 169250 
							
						 
						
							2012-12-04 10:23:08 +00:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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