Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move Signals to .rodata | Nuno Lopes | 2012-04-21 | 1 | -1/+1 |
| | | | | llvm-svn: 155283 | ||||
* | Remove dead code. Improve llvm_unreachable text. Simplify some control flow. | Ahmed Charles | 2012-02-19 | 1 | -1/+0 |
| | | | | llvm-svn: 150918 | ||||
* | lib/Support/CrashRecoveryContext.cpp: Add Win32 support to ↵ | NAKAMURA Takumi | 2011-08-20 | 1 | -1/+67 |
| | | | | | | CrashRecoveryContext. Thanks to Aaron Ballman! llvm-svn: 138199 | ||||
* | Properly initialize all fields in CrashReporterCleanupContext. This caused ↵ | Ted Kremenek | 2011-03-22 | 1 | -1/+1 |
| | | | | | | the buildbot failure earlier. llvm-svn: 128071 | ||||
* | Temporarily stop recovering resources in CrashRecoveryContext while I ↵ | Ted Kremenek | 2011-03-22 | 1 | -1/+1 |
| | | | | | | investigate further why this works on my machine and not on others. llvm-svn: 128065 | ||||
* | Provide a means for CrashRecovery clients to determine if code is currently ↵ | Ted Kremenek | 2011-03-21 | 1 | -0/+9 |
| | | | | | | running while crash recovery cleanups are being processed. llvm-svn: 128008 | ||||
* | Tweak CrashRecoveryContextCleanup to provide an easy method for clients to ↵ | Ted Kremenek | 2011-03-19 | 1 | -0/+1 |
| | | | | | | select between 'delete' and 'destructor' cleanups, and allow the destructor of CrashRecoveryContextCleanupRegister to be pseudo re-entrant. llvm-svn: 127929 | ||||
* | Tweak CrashRecoveryContext::GetCurrent() to return quickly if ↵ | Ted Kremenek | 2011-03-19 | 1 | -0/+3 |
| | | | | | | | | '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 | ||||
* | Augment CrashRecoveryContext to have registered "cleanup" objects that can ↵ | Ted Kremenek | 2011-03-18 | 1 | -0/+38 |
| | | | | | | be used to release resources during a crash. llvm-svn: 127849 | ||||
* | Merge System into Support. | Michael J. Spencer | 2010-11-29 | 1 | -2/+2 |
| | | | | llvm-svn: 120298 | ||||
* | CrashRecoveryContext: Add RunSafelyOnThread helper function. | Daniel Dunbar | 2010-11-05 | 1 | -0/+23 |
| | | | | llvm-svn: 118272 | ||||
* | CrashRecoveryContext: Add missing return, so that the signal fires after we our | Daniel Dunbar | 2010-10-18 | 1 | -0/+3 |
| | | | | | | | routine is off the stack. Otherwise we show up rather confusingly in the stack trace. llvm-svn: 116755 | ||||
* | CrashRecovery: Clear the current context on the first crash, to avoid ↵ | Daniel Dunbar | 2010-08-17 | 1 | -0/+4 |
| | | | | | | re-entering it if the cleanup code crashes. llvm-svn: 111309 | ||||
* | CrashRecovery: Add CrashRecoveryContext::GetCurrent(), so clients can find ↵ | Daniel Dunbar | 2010-08-17 | 1 | -2/+12 |
| | | | | | | the active context from anywhere. llvm-svn: 111308 | ||||
* | CrashRecovery: Make CrashRecoveryContext static methods thread safe. | Daniel Dunbar | 2010-08-17 | 1 | -0/+10 |
| | | | | llvm-svn: 111307 | ||||
* | Fix -Wmissing-field-initializers warnings. | Daniel Dunbar | 2010-07-30 | 1 | -15/+5 |
| | | | | llvm-svn: 109872 | ||||
* | CrashRecovery: Use ThreadLocal::erase() instead of set(0). | Daniel Dunbar | 2010-07-29 | 1 | -1/+1 |
| | | | | llvm-svn: 109752 | ||||
* | Make sure to include config.h, to pickup LLVM_ON_WIN32. | Daniel Dunbar | 2010-07-29 | 1 | -0/+1 |
| | | | | llvm-svn: 109721 | ||||
* | CrashRecoveryContext: Add a simple POSIX implementation. | Daniel Dunbar | 2010-07-29 | 1 | -1/+102 |
| | | | | | | | | - 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 | ||||
* | Support: Add CrashRecoveryContext helper object. | Daniel Dunbar | 2010-07-28 | 1 | -0/+88 |
- 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 |