MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mem_pool_t Struct Reference
Collaboration diagram for mem_pool_t:

Public Attributes

byte * buf
ulint size
ulint reserved
ib_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

byte* mem_pool_t::buf

memory pool

Definition at line 104 of file mem0pool.cc.

mem_pool_t::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.

ib_mutex_t mem_pool_t::mutex

mutex protecting this struct

Definition at line 108 of file mem0pool.cc.

ulint mem_pool_t::reserved

amount of currently allocated memory

Definition at line 106 of file mem0pool.cc.

ulint mem_pool_t::size

memory common pool size

Definition at line 105 of file mem0pool.cc.


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