MySQL 8.0.39
Source Code Documentation
my_alloc.cc File Reference

Implementation of MEM_ROOT. More...

#include <stdarg.h>
#include <string.h>
#include <sys/types.h>
#include <iterator>
#include "my_alloc.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_pointer_arithmetic.h"
#include "my_sys.h"
#include "mysql/service_mysql_alloc.h"
#include "mysys_err.h"
#include "template_utils.h"

Functions

void * multi_alloc_root (MEM_ROOT *root,...)
 
char * strdup_root (MEM_ROOT *root, const char *str)
 
char * safe_strdup_root (MEM_ROOT *root, const char *str)
 
char * strmake_root (MEM_ROOT *root, const char *str, size_t len)
 
void * memdup_root (MEM_ROOT *root, const void *str, size_t len)
 

Variables

static constexpr bool MEM_ROOT_SINGLE_CHUNKS = false
 

Detailed Description

Implementation of MEM_ROOT.

This file follows Google coding style.

Variable Documentation

◆ MEM_ROOT_SINGLE_CHUNKS

constexpr bool MEM_ROOT_SINGLE_CHUNKS = false
staticconstexpr