MySQL 9.1.0
Source Code Documentation
thr_malloc.h File Reference
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef unsigned int PSI_memory_key
 

Functions

void init_sql_alloc (PSI_memory_key key, MEM_ROOT *root, size_t block_size)
 
void * sql_calloc (size_t)
 
char * sql_strdup (const char *str)
 
char * sql_strmake (const char *str, size_t len)
 
void * sql_memdup (const void *ptr, size_t size)
 
char * sql_strmake_with_convert (const char *str, size_t arg_length, const CHARSET_INFO *from_cs, size_t max_res_length, const CHARSET_INFO *to_cs, size_t *result_length)
 

Variables

thread_local MEM_ROOT ** THR_MALLOC
 

Typedef Documentation

◆ PSI_memory_key

typedef unsigned int PSI_memory_key

Function Documentation

◆ init_sql_alloc()

void init_sql_alloc ( PSI_memory_key  key,
MEM_ROOT root,
size_t  block_size 
)

◆ sql_calloc()

void * sql_calloc ( size_t  size)

◆ sql_memdup()

void * sql_memdup ( const void *  ptr,
size_t  size 
)

◆ sql_strdup()

char * sql_strdup ( const char *  str)

◆ sql_strmake()

char * sql_strmake ( const char *  str,
size_t  len 
)

◆ sql_strmake_with_convert()

char * sql_strmake_with_convert ( const char *  str,
size_t  arg_length,
const CHARSET_INFO from_cs,
size_t  max_res_length,
const CHARSET_INFO to_cs,
size_t *  result_length 
)

Variable Documentation

◆ THR_MALLOC

thread_local MEM_ROOT** THR_MALLOC
extern