drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
mem_pool_struct Struct Reference
Collaboration diagram for mem_pool_struct:
[legend]

Public Attributes

byte * buf
ulint size
ulint reserved
mutex_t mutex
 free_list [64]

Detailed Description

Data structure for a memory pool. The space is allocated using the buddy algorithm, where free list i contains areas of size 2 to power i.

Definition at line 103 of file mem0pool.cc.

Member Data Documentation

◆ buf

byte* mem_pool_struct::buf

memory pool

Definition at line 104 of file mem0pool.cc.

◆ free_list

mem_pool_struct::free_list[64]

lists of free memory areas: an area is put to the list whose number is the 2-logarithm of the area size

Definition at line 110 of file mem0pool.cc.

◆ mutex

mutex_t mem_pool_struct::mutex

mutex protecting this struct

Definition at line 108 of file mem0pool.cc.

◆ reserved

ulint mem_pool_struct::reserved

amount of currently allocated memory

Definition at line 106 of file mem0pool.cc.

◆ size

ulint mem_pool_struct::size

memory common pool size

Definition at line 105 of file mem0pool.cc.


The documentation for this struct was generated from the following file: