LLVM
8.0.1
|
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/ThreadLocal.h"
#include <setjmp.h>
#include <signal.h>
Go to the source code of this file.
Functions | |
static void | installExceptionOrSignalHandlers () |
static void | uninstallExceptionOrSignalHandlers () |
static void | CrashRecoverySignalHandler (int Signal) |
static void | setThreadBackgroundPriority () |
static bool | hasThreadBackgroundPriority () |
static void | RunSafelyOnThread_Dispatch (void *UserData) |
Variables | |
static ManagedStatic< sys::Mutex > | gCrashRecoveryContextMutex |
static bool | gCrashRecoveryEnabled = false |
static ManagedStatic< sys::ThreadLocal< const CrashRecoveryContext > > | tlIsRecoveringFromCrash |
static const int | Signals [] |
static const unsigned | NumSignals = array_lengthof(Signals) |
static struct sigaction | PrevActions [NumSignals] |
|
static |
Definition at line 295 of file CrashRecoveryContext.cpp.
References llvm::CrashRecoveryContext::Disable().
Referenced by installExceptionOrSignalHandlers().
|
static |
Definition at line 378 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
|
static |
Definition at line 327 of file CrashRecoveryContext.cpp.
References CrashRecoverySignalHandler(), NumSignals, and PrevActions.
Referenced by llvm::CrashRecoveryContext::Enable(), and llvm::CrashRecoveryContext::unregisterCleanup().
|
static |
Definition at line 395 of file CrashRecoveryContext.cpp.
References Info, and setThreadBackgroundPriority().
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
|
static |
Definition at line 372 of file CrashRecoveryContext.cpp.
Referenced by RunSafelyOnThread_Dispatch().
|
static |
Definition at line 339 of file CrashRecoveryContext.cpp.
References NumSignals, and PrevActions.
Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::unregisterCleanup().
|
static |
Definition at line 75 of file CrashRecoveryContext.cpp.
Definition at line 76 of file CrashRecoveryContext.cpp.
Definition at line 292 of file CrashRecoveryContext.cpp.
Referenced by installExceptionOrSignalHandlers(), and uninstallExceptionOrSignalHandlers().
|
static |
Definition at line 293 of file CrashRecoveryContext.cpp.
Referenced by installExceptionOrSignalHandlers(), and uninstallExceptionOrSignalHandlers().
|
static |
Definition at line 290 of file CrashRecoveryContext.cpp.
|
static |
Definition at line 79 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::isRecoveringFromCrash(), and llvm::CrashRecoveryContext::~CrashRecoveryContext().