24#ifndef MYSQL_SERVICE_MYSQL_ALLOC_INCLUDED
25#define MYSQL_SERVICE_MYSQL_ALLOC_INCLUDED
31#ifndef MYSQL_ABI_CHECK
106#ifdef MYSQL_DYNAMIC_PLUGIN
108#define my_malloc mysql_malloc_service->mysql_malloc
109#define my_realloc mysql_malloc_service->mysql_realloc
110#define my_claim mysql_malloc_service->mysql_claim
111#define my_free mysql_malloc_service->mysql_free
112#define my_memdup mysql_malloc_service->my_memdup
113#define my_strdup mysql_malloc_service->my_strdup
114#define my_strndup mysql_malloc_service->my_strndup
121extern void my_claim(
const void *ptr,
bool claim);
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:49
static int flags[50]
Definition: hp_test1.cc:40
void * my_std_malloc(PSI_memory_key key, size_t size, myf flags)
Definition: my_malloc.cc:390
void my_std_free(void *ptr)
Definition: my_malloc.cc:471
void * my_std_realloc(PSI_memory_key key, void *ptr, size_t size, myf flags)
Definition: my_malloc.cc:454
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
size_t size(const char *const c)
Definition: base64.h:46
Performance schema instrumentation interface.
required string key
Definition: replication_asynchronous_connection_failover.proto:60
char *(* my_strdup_t)(PSI_memory_key key, const char *from, myf_t flags)
Definition: service_mysql_alloc.h:48
char * my_strdup(PSI_memory_key key, const char *from, myf_t flags)
Definition: my_malloc.cc:548
void * my_memdup(PSI_memory_key key, const void *from, size_t length, myf_t flags)
Definition: my_malloc.cc:540
void my_free(void *ptr)
Frees the memory pointed by the ptr.
Definition: my_memory.cc:81
void(* mysql_free_t)(void *ptr)
Definition: service_mysql_alloc.h:45
struct mysql_malloc_service_st * mysql_malloc_service
Definition: service_mysql_alloc.h:104
void(* mysql_claim_t)(const void *ptr, bool claim)
Definition: service_mysql_alloc.h:44
void *(* mysql_malloc_t)(PSI_memory_key key, size_t size, myf_t flags)
Definition: service_mysql_alloc.h:41
void * my_malloc(PSI_memory_key key, size_t size, myf_t flags)
Allocates size bytes of memory.
Definition: my_memory.cc:57
void my_claim(const void *ptr, bool claim)
Definition: my_malloc.cc:458
int myf_t
Definition: service_mysql_alloc.h:39
void *(* mysql_realloc_t)(PSI_memory_key key, void *ptr, size_t size, myf_t flags)
Definition: service_mysql_alloc.h:42
char * my_strndup(PSI_memory_key key, const char *from, size_t length, myf_t flags)
Definition: my_malloc.cc:556
void *(* my_memdup_t)(PSI_memory_key key, const void *from, size_t length, myf_t flags)
Definition: service_mysql_alloc.h:46
char *(* my_strndup_t)(PSI_memory_key key, const char *from, size_t length, myf_t flags)
Definition: service_mysql_alloc.h:49
void * my_realloc(PSI_memory_key key, void *ptr, size_t size, myf_t flags)
Definition: my_malloc.cc:449
This service allows plugins to allocate and free memory through the server's memory handling routines...
Definition: service_mysql_alloc.h:59
mysql_realloc_t mysql_realloc
Reallocates a block of memory.
Definition: service_mysql_alloc.h:71
my_memdup_t my_memdup
Copies a buffer into a new buffer.
Definition: service_mysql_alloc.h:89
my_strndup_t my_strndup
Copies no more than n characters of a string into a new buffer.
Definition: service_mysql_alloc.h:101
my_strdup_t my_strdup
Copies a string into a new buffer.
Definition: service_mysql_alloc.h:95
mysql_free_t mysql_free
Frees a block of memory.
Definition: service_mysql_alloc.h:83
mysql_malloc_t mysql_malloc
Allocates a block of memory.
Definition: service_mysql_alloc.h:65
mysql_claim_t mysql_claim
Re-instruments a block of memory.
Definition: service_mysql_alloc.h:77