Home
last modified time | relevance | path

Searched refs:CrashRecoveryContext (Results 1 – 25 of 41) sorted by relevance

12

/external/llvm-project/llvm/unittests/Support/
DCrashRecoveryTest.cpp43 llvm::CrashRecoveryContext::Enable(); in TEST()
45 EXPECT_TRUE(CrashRecoveryContext().RunSafely(incrementGlobal)); in TEST()
47 EXPECT_FALSE(CrashRecoveryContext().RunSafely(nullDeref)); in TEST()
48 EXPECT_FALSE(CrashRecoveryContext().RunSafely(llvmTrap)); in TEST()
52 IncrementGlobalCleanup(CrashRecoveryContext *CRC) in IncrementGlobalCleanup()
60 llvm::CrashRecoveryContext::Enable(); in TEST()
63 CrashRecoveryContext CRC; in TEST()
71 CrashRecoveryContext CRC; in TEST()
76 llvm::CrashRecoveryContext::Disable(); in TEST()
86 llvm::CrashRecoveryContext::Enable(); in TEST()
[all …]
/external/llvm/lib/Support/
DCrashRecoveryContext.cpp33 CrashRecoveryContext *CRC;
39 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) : CRC(CRC), in CrashRecoveryContextImpl()
78 static ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext>>
83 CrashRecoveryContext::~CrashRecoveryContext() { in ~CrashRecoveryContext()
86 const CrashRecoveryContext *PC = tlIsRecoveringFromCrash->get(); in ~CrashRecoveryContext()
101 bool CrashRecoveryContext::isRecoveringFromCrash() { in isRecoveringFromCrash()
105 CrashRecoveryContext *CrashRecoveryContext::GetCurrent() { in GetCurrent()
116 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup) in registerCleanup()
127 CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) { in unregisterCleanup()
173 CrashRecoveryContext::Disable(); in ExceptionHandler()
[all …]
DCMakeLists.txt45 CrashRecoveryContext.cpp
/external/llvm-project/llvm/lib/Support/
DCrashRecoveryContext.cpp35 CrashRecoveryContext *CRC;
42 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept in CrashRecoveryContextImpl()
90 static ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext>>
98 CrashRecoveryContext::CrashRecoveryContext() { in CrashRecoveryContext() function in CrashRecoveryContext
105 CrashRecoveryContext::~CrashRecoveryContext() { in ~CrashRecoveryContext()
108 const CrashRecoveryContext *PC = tlIsRecoveringFromCrash->get(); in ~CrashRecoveryContext()
123 bool CrashRecoveryContext::isRecoveringFromCrash() { in isRecoveringFromCrash()
127 CrashRecoveryContext *CrashRecoveryContext::GetCurrent() { in GetCurrent()
138 void CrashRecoveryContext::Enable() { in Enable()
147 void CrashRecoveryContext::Disable() { in Disable()
[all …]
DProcess.cpp97 if (CrashRecoveryContext *CRC = CrashRecoveryContext::GetCurrent()) in Exit()
/external/llvm/include/llvm/Support/
DCrashRecoveryContext.h41 class CrashRecoveryContext {
46 CrashRecoveryContext() : Impl(nullptr), head(nullptr) {} in CrashRecoveryContext() function
47 ~CrashRecoveryContext();
60 static CrashRecoveryContext *GetCurrent();
99 CrashRecoveryContext *context;
100 CrashRecoveryContextCleanup(CrashRecoveryContext *context) in CrashRecoveryContextCleanup()
109 CrashRecoveryContext *getContext() const { in getContext()
114 friend class CrashRecoveryContext;
122 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase()
128 if (CrashRecoveryContext *context = CrashRecoveryContext::GetCurrent()) in create()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DCrashRecoveryContext.cpp37 CrashRecoveryContext *CRC;
44 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept in CrashRecoveryContextImpl()
92 static ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext>>
100 CrashRecoveryContext::~CrashRecoveryContext() { in ~CrashRecoveryContext()
103 const CrashRecoveryContext *PC = tlIsRecoveringFromCrash->get(); in ~CrashRecoveryContext()
118 bool CrashRecoveryContext::isRecoveringFromCrash() { in isRecoveringFromCrash()
122 CrashRecoveryContext *CrashRecoveryContext::GetCurrent() { in GetCurrent()
133 void CrashRecoveryContext::Enable() { in Enable()
142 void CrashRecoveryContext::Disable() { in Disable()
150 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup) in registerCleanup()
[all …]
DProcess.cpp94 if (CrashRecoveryContext *CRC = CrashRecoveryContext::GetCurrent()) in Exit()
DCMakeLists.txt83 CrashRecoveryContext.cpp
/external/llvm-project/llvm/include/llvm/Support/
DCrashRecoveryContext.h46 class CrashRecoveryContext {
51 CrashRecoveryContext();
52 ~CrashRecoveryContext();
69 static CrashRecoveryContext *GetCurrent();
127 CrashRecoveryContext *context = nullptr;
128 CrashRecoveryContextCleanup(CrashRecoveryContext *context) in CrashRecoveryContextCleanup()
137 CrashRecoveryContext *getContext() const { in getContext()
142 friend class CrashRecoveryContext;
161 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase()
171 if (CrashRecoveryContext *context = CrashRecoveryContext::GetCurrent()) in create()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DCrashRecoveryContext.h46 class CrashRecoveryContext {
51 CrashRecoveryContext() : Impl(nullptr), head(nullptr) {} in CrashRecoveryContext() function
52 ~CrashRecoveryContext();
69 static CrashRecoveryContext *GetCurrent();
123 CrashRecoveryContext *context = nullptr;
124 CrashRecoveryContextCleanup(CrashRecoveryContext *context) in CrashRecoveryContextCleanup()
133 CrashRecoveryContext *getContext() const { in getContext()
138 friend class CrashRecoveryContext;
157 CrashRecoveryContextCleanupBase(CrashRecoveryContext *context, T *resource) in CrashRecoveryContextCleanupBase()
167 if (CrashRecoveryContext *context = CrashRecoveryContext::GetCurrent()) in create()
[all …]
/external/clang/tools/libclang/
DCIndexer.h27 class CrashRecoveryContext; variable
90 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
/external/llvm-project/lld/tools/lld/
Dlld.cpp178 llvm::CrashRecoveryContext crc; in safeLldMain()
187 llvm::CrashRecoveryContext crc; in safeLldMain()
214 CrashRecoveryContext::Enable(); in main()
/external/llvm-project/clang/tools/libclang/
DCIndexer.h23 class CrashRecoveryContext; variable
115 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
DIndexing.cpp908 llvm::CrashRecoveryContext CRC; in clang_indexSourceFileFullArgv()
957 llvm::CrashRecoveryContext CRC; in clang_indexTranslationUnit()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DBenchmarkRunner.cpp97 CrashRecoveryContext CRC; in runAndSample()
98 CrashRecoveryContext::Enable(); in runAndSample()
104 CrashRecoveryContext::Disable(); in runAndSample()
/external/llvm-project/clang/lib/Basic/
DStack.cpp69 llvm::CrashRecoveryContext CRC; in runWithSufficientStackSpaceSlow()
/external/llvm-project/lld/Common/
DErrorHandler.cpp69 CrashRecoveryContext::throwIfCrash(val); in exitLld()
75 if (!CrashRecoveryContext::GetCurrent()) in exitLld()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp101 llvm::CrashRecoveryContext CRC; in onBodySynthesis()
/external/llvm-project/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp98 llvm::CrashRecoveryContext CRC; in onBodySynthesis()
/external/clang/lib/Parse/
DParseAST.cpp39 ResetStackCleanup(llvm::CrashRecoveryContext *Context, const void *Top) in ResetStackCleanup()
/external/llvm-project/clang/lib/Parse/
DParseAST.cpp40 ResetStackCleanup(llvm::CrashRecoveryContext *Context, const void *Top) in ResetStackCleanup()
/external/llvm-project/mlir/lib/Pass/
DPass.cpp673 llvm::CrashRecoveryContext::Enable(); in RecoveryReproducerContext()
685 llvm::CrashRecoveryContext::Disable(); in ~RecoveryReproducerContext()
755 llvm::CrashRecoveryContext recoveryContext; in runWithCrashRecovery()
/external/llvm-project/llvm/utils/gn/secondary/llvm/lib/Support/
DBUILD.gn62 "CrashRecoveryContext.cpp",
/external/llvm-project/clang/lib/Frontend/Rewrite/
DFrontendActions.cpp260 llvm::CrashRecoveryContext().RunSafelyOnThread([&]() { in visitModuleFile()

12