MySQL 9.1.0
Source Code Documentation
|
#include "sql/check_stack.h"
#include "my_config.h"
#include <assert.h>
#include <stdio.h>
#include <algorithm>
#include <atomic>
#include <new>
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysql_com.h"
#include "mysqld_error.h"
#include "sql/current_thd.h"
#include "sql/derror.h"
#include "sql/sql_class.h"
Namespaces | |
namespace | anonymous_namespace{check_stack.cc} |
Functions | |
NO_INLINE int | stack_direction_f (int *a) |
NO_INLINE int | initialize_stack_direction () |
long | anonymous_namespace{check_stack.cc}::used_stack (const char *a_ptr, const char *b_ptr) |
bool | check_stack_overrun (const THD *thd, long margin, unsigned char *buf) |
Check stack for a overrun. More... | |
Variables | |
int | anonymous_namespace{check_stack.cc}::stack_direction = 0 |
int(* | ptr_f )(int *) = stack_direction_f |
std::atomic< long > | max_stack_used |
bool check_stack_overrun | ( | const THD * | thd, |
long | margin, | ||
unsigned char * | buf | ||
) |
Check stack for a overrun.
thd | Thread handler. |
margin | Minimal acceptable unused space in the stack. |
buf | See a note below. |
NO_INLINE int initialize_stack_direction | ( | ) |
NO_INLINE int stack_direction_f | ( | int * | a | ) |
std::atomic<long> max_stack_used |
int(* ptr_f) (int *) | ( | int * | ) | = stack_direction_f |