LLVM
15.0.0git
|
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ExitCodes.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/ThreadLocal.h"
#include "llvm/Support/thread.h"
#include <mutex>
#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< std::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 351 of file CrashRecoveryContext.cpp.
References llvm::CrashRecoveryContext::Disable().
Referenced by installExceptionOrSignalHandlers().
|
static |
Definition at line 482 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
|
static |
Definition at line 392 of file CrashRecoveryContext.cpp.
References CrashRecoverySignalHandler(), i, NumSignals, PrevActions, and Signals.
Referenced by llvm::CrashRecoveryContext::Enable().
|
static |
Definition at line 499 of file CrashRecoveryContext.cpp.
References Info, and setThreadBackgroundPriority().
Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().
|
static |
Definition at line 476 of file CrashRecoveryContext.cpp.
Referenced by RunSafelyOnThread_Dispatch().
|
static |
Definition at line 404 of file CrashRecoveryContext.cpp.
References i, NumSignals, PrevActions, and Signals.
Referenced by llvm::CrashRecoveryContext::Disable().
|
static |
Definition at line 88 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::Disable(), and llvm::CrashRecoveryContext::Enable().
|
static |
Definition at line 89 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::Disable(), llvm::CrashRecoveryContext::Enable(), llvm::CrashRecoveryContext::GetCurrent(), and llvm::CrashRecoveryContext::RunSafely().
Definition at line 348 of file CrashRecoveryContext.cpp.
Referenced by installExceptionOrSignalHandlers(), and uninstallExceptionOrSignalHandlers().
|
static |
Definition at line 349 of file CrashRecoveryContext.cpp.
Referenced by installExceptionOrSignalHandlers(), and uninstallExceptionOrSignalHandlers().
Definition at line 346 of file CrashRecoveryContext.cpp.
Referenced by installExceptionOrSignalHandlers(), and uninstallExceptionOrSignalHandlers().
|
static |
Definition at line 92 of file CrashRecoveryContext.cpp.
Referenced by llvm::CrashRecoveryContext::isRecoveringFromCrash(), and llvm::CrashRecoveryContext::~CrashRecoveryContext().