PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <llvm/Support/ErrorHandling.h>
#include "jit/llvmjit.h"
#include <new>
Go to the source code of this file.
Functions | |
static void | fatal_system_new_handler (void) |
static void | fatal_llvm_new_handler (void *user_data, const char *reason, bool gen_crash_diag) |
static void | fatal_llvm_new_handler (void *user_data, const std::string &reason, bool gen_crash_diag) |
static void | fatal_llvm_error_handler (void *user_data, const char *reason, bool gen_crash_diag) |
static void | fatal_llvm_error_handler (void *user_data, const std::string &reason, bool gen_crash_diag) |
void | llvm_enter_fatal_on_oom (void) |
void | llvm_leave_fatal_on_oom (void) |
bool | llvm_in_fatal_on_oom (void) |
void | llvm_reset_after_error (void) |
void | llvm_assert_in_fatal_section (void) |
Variables | |
static int | fatal_new_handler_depth = 0 |
static std::new_handler | old_new_handler = NULL |
|
static |
Definition at line 149 of file llvmjit_error.cpp.
References ereport, errcode(), errmsg(), and FATAL.
Referenced by fatal_llvm_error_handler(), and llvm_enter_fatal_on_oom().
|
static |
Definition at line 160 of file llvmjit_error.cpp.
References fatal_llvm_error_handler().
|
static |
Definition at line 129 of file llvmjit_error.cpp.
References ereport, errcode(), errdetail(), errmsg(), and FATAL.
Referenced by fatal_llvm_new_handler(), and llvm_enter_fatal_on_oom().
|
static |
Definition at line 140 of file llvmjit_error.cpp.
References fatal_llvm_new_handler().
|
static |
Definition at line 120 of file llvmjit_error.cpp.
References ereport, errcode(), errdetail(), errmsg(), and FATAL.
Referenced by llvm_enter_fatal_on_oom().
void llvm_assert_in_fatal_section | ( | void | ) |
Definition at line 114 of file llvmjit_error.cpp.
References Assert, and fatal_new_handler_depth.
Referenced by llvm_create_context(), llvm_get_function(), and llvm_mutable_module().
void llvm_enter_fatal_on_oom | ( | void | ) |
Definition at line 61 of file llvmjit_error.cpp.
References fatal_llvm_error_handler(), fatal_llvm_new_handler(), fatal_new_handler_depth, fatal_system_new_handler(), and old_new_handler.
Referenced by ExecRunCompiledExpr(), llvm_compile_expr(), and llvm_release_context().
bool llvm_in_fatal_on_oom | ( | void | ) |
Definition at line 92 of file llvmjit_error.cpp.
References fatal_new_handler_depth.
Referenced by llvm_shutdown().
void llvm_leave_fatal_on_oom | ( | void | ) |
Definition at line 76 of file llvmjit_error.cpp.
References fatal_new_handler_depth, and old_new_handler.
Referenced by ExecRunCompiledExpr(), and llvm_release_context().
void llvm_reset_after_error | ( | void | ) |
Definition at line 102 of file llvmjit_error.cpp.
References fatal_new_handler_depth, and old_new_handler.
Referenced by _PG_jit_provider_init().
|
static |
Definition at line 28 of file llvmjit_error.cpp.
Referenced by llvm_assert_in_fatal_section(), llvm_enter_fatal_on_oom(), llvm_in_fatal_on_oom(), llvm_leave_fatal_on_oom(), and llvm_reset_after_error().
|
static |
Definition at line 29 of file llvmjit_error.cpp.
Referenced by llvm_enter_fatal_on_oom(), llvm_leave_fatal_on_oom(), and llvm_reset_after_error().