drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::memory Namespace Reference

Classes

class  Root
class  SqlAlloc

Functions

void * multi_malloc (bool zerofill,...)
void * sql_alloc (size_t Size)
void * sql_calloc (size_t size)
char * sql_strdup (const char *str)
char * sql_strdup (str_ref str)
void * sql_memdup (const void *ptr, size_t len)

Variables

static const unsigned int MAX_BLOCK_TO_DROP = 4096
static const unsigned int MAX_BLOCK_USAGE_BEFORE_DROP = 10
static const int KEEP_PREALLOC = 1
static const int MARK_BLOCKS_FREE = 2
static const size_t ROOT_MIN_BLOCK_SIZE = (MALLOC_OVERHEAD + sizeof(internal::UsedMemory) + 8)

Detailed Description

Memory allocation utils

NB: This namespace documentation may not seem very useful, but without a comment on the namespace Doxygen won't extract any documentation for namespace members.

Function Documentation

◆ multi_malloc()

void * drizzled::memory::multi_malloc ( bool zerofill,
... )

Definition at line 43 of file multi_malloc.cc.

◆ sql_alloc()

void * drizzled::memory::sql_alloc ( size_t Size)

Definition at line 33 of file sql_alloc.cc.

◆ sql_calloc()

void * drizzled::memory::sql_calloc ( size_t size)

Definition at line 38 of file sql_alloc.cc.

◆ sql_memdup()

void * drizzled::memory::sql_memdup ( const void * ptr,
size_t len )

Definition at line 53 of file sql_alloc.cc.

◆ sql_strdup() [1/2]

char * drizzled::memory::sql_strdup ( const char * str)

Definition at line 43 of file sql_alloc.cc.

◆ sql_strdup() [2/2]

char * drizzled::memory::sql_strdup ( str_ref str)

Definition at line 48 of file sql_alloc.cc.

Variable Documentation

◆ KEEP_PREALLOC

const int drizzled::memory::KEEP_PREALLOC = 1
static

Definition at line 40 of file root.h.

◆ MARK_BLOCKS_FREE

const int drizzled::memory::MARK_BLOCKS_FREE = 2
static

Definition at line 42 of file root.h.

◆ MAX_BLOCK_TO_DROP

const unsigned int drizzled::memory::MAX_BLOCK_TO_DROP = 4096
static

Definition at line 36 of file root.cc.

◆ MAX_BLOCK_USAGE_BEFORE_DROP

const unsigned int drizzled::memory::MAX_BLOCK_USAGE_BEFORE_DROP = 10
static

Definition at line 37 of file root.cc.

◆ ROOT_MIN_BLOCK_SIZE

const size_t drizzled::memory::ROOT_MIN_BLOCK_SIZE = (MALLOC_OVERHEAD + sizeof(internal::UsedMemory) + 8)
static

Definition at line 55 of file root.h.