ab1a242ead 
								
							 
						 
						
							
							
								
								Provide a means for CrashRecovery clients to determine if code is currently running while crash recovery cleanups are being processed.  
							
							... 
							
							
							
							llvm-svn: 128008 
							
						 
						
							2011-03-21 18:38:03 +00:00  
				
					
						
							
							
								 
						
							
								32aea2e401 
								
							 
						 
						
							
							
								
								Tweak CrashRecoveryContextCleanup to provide an easy method for clients to select between 'delete' and 'destructor' cleanups, and allow the destructor of CrashRecoveryContextCleanupRegister to be pseudo re-entrant.  
							
							... 
							
							
							
							llvm-svn: 127929 
							
						 
						
							2011-03-19 00:59:37 +00:00  
				
					
						
							
							
								 
						
							
								794a0714ad 
								
							 
						 
						
							
							
								
								Tweak CrashRecoveryContext::GetCurrent() to return quickly if 'gCrsahRecoveryEnabled' is false.  This avoids us needing to go to thread local storage for  
							
							... 
							
							
							
							the performance sensitive case where we are compiling code.
llvm-svn: 127928 
							
						 
						
							2011-03-19 00:59:33 +00:00  
				
					
						
							
							
								 
						
							
								c44d3cf581 
								
							 
						 
						
							
							
								
								Augment CrashRecoveryContext to have registered "cleanup" objects that can be used to release resources during a crash.  
							
							... 
							
							
							
							llvm-svn: 127849 
							
						 
						
							2011-03-18 02:05:11 +00:00  
				
					
						
							
							
								 
						
							
								447762da85 
								
							 
						 
						
							
							
								
								Merge System into Support.  
							
							... 
							
							
							
							llvm-svn: 120298 
							
						 
						
							2010-11-29 18:16:10 +00:00  
				
					
						
							
							
								 
						
							
								f4d90ba9f5 
								
							 
						 
						
							
							
								
								CrashRecoveryContext: Add RunSafelyOnThread helper function.  
							
							... 
							
							
							
							llvm-svn: 118272 
							
						 
						
							2010-11-05 07:19:09 +00:00  
				
					
						
							
							
								 
						
							
								418e7046f7 
								
							 
						 
						
							
							
								
								CrashRecoveryContext: Add missing return, so that the signal fires after we our  
							
							... 
							
							
							
							routine is off the stack. Otherwise we show up rather confusingly in the stack
trace.
llvm-svn: 116755 
							
						 
						
							2010-10-18 21:55:18 +00:00  
				
					
						
							
							
								 
						
							
								09b0c78918 
								
							 
						 
						
							
							
								
								CrashRecovery: Clear the current context on the first crash, to avoid re-entering it if the cleanup code crashes.  
							
							... 
							
							
							
							llvm-svn: 111309 
							
						 
						
							2010-08-17 22:32:39 +00:00  
				
					
						
							
							
								 
						
							
								b30266ed20 
								
							 
						 
						
							
							
								
								CrashRecovery: Add CrashRecoveryContext::GetCurrent(), so clients can find the active context from anywhere.  
							
							... 
							
							
							
							llvm-svn: 111308 
							
						 
						
							2010-08-17 22:32:37 +00:00  
				
					
						
							
							
								 
						
							
								ff329942cd 
								
							 
						 
						
							
							
								
								CrashRecovery: Make CrashRecoveryContext static methods thread safe.  
							
							... 
							
							
							
							llvm-svn: 111307 
							
						 
						
							2010-08-17 22:32:34 +00:00  
				
					
						
							
							
								 
						
							
								c90e82a7f1 
								
							 
						 
						
							
							
								
								Fix -Wmissing-field-initializers warnings.  
							
							... 
							
							
							
							llvm-svn: 109872 
							
						 
						
							2010-07-30 17:49:04 +00:00  
				
					
						
							
							
								 
						
							
								4a338e3dc4 
								
							 
						 
						
							
							
								
								CrashRecovery: Use ThreadLocal::erase() instead of set(0).  
							
							... 
							
							
							
							llvm-svn: 109752 
							
						 
						
							2010-07-29 15:24:21 +00:00  
				
					
						
							
							
								 
						
							
								9789f81eb4 
								
							 
						 
						
							
							
								
								Make sure to include config.h, to pickup LLVM_ON_WIN32.  
							
							... 
							
							
							
							llvm-svn: 109721 
							
						 
						
							2010-07-29 01:52:04 +00:00  
				
					
						
							
							
								 
						
							
								af77e22b36 
								
							 
						 
						
							
							
								
								CrashRecoveryContext: Add a simple POSIX implementation.  
							
							... 
							
							
							
							- This works, but won't handle crashes on stack overflow, or signals delivered
   to a thread other than the one that crashed. The latter is particular annoying
   on Darwin, because SIGABRT tends to go to the main thread.
llvm-svn: 109717 
							
						 
						
							2010-07-29 01:21:47 +00:00  
				
					
						
							
							
								 
						
							
								19a3b37441 
								
							 
						 
						
							
							
								
								Support: Add CrashRecoveryContext helper object.  
							
							... 
							
							
							
							- Designed as a simple wrapper to allow clients to attempt to catch crashes
   (memory errors, assertion violations, etc.) and do some kind of recovery.
 - Currently doesn't actually attempt to catch crashes.
llvm-svn: 109586 
							
						 
						
							2010-07-28 15:40:20 +00:00