MySQL 9.1.0
Source Code Documentation
|
The info structure stored at the beginning of a heap block. More...
#include <mem0mem.h>
Public Member Functions | |
UT_LIST_NODE_T (mem_block_t) list | |
This contains pointers to next and prev in the list. More... | |
UT_LIST_BASE_NODE_T_EXTERN (mem_block_t, list) base | |
In the first block of the list this is the base node of the list of blocks; in subsequent blocks this is undefined. More... | |
Public Attributes | |
uint64_t | magic_n |
Magic number for debugging. More... | |
char | file_name [16] |
File name where the mem heap was created. More... | |
ulint | line |
Line number where the mem heap was created. More... | |
ulint | len |
Physical length of this block in bytes. More... | |
ulint | total_size |
Physical length in bytes of all blocks in the heap. More... | |
ulint | type |
Type of heap: MEM_HEAP_DYNAMIC, or MEM_HEAP_BUF possibly ORed to MEM_HEAP_BTR_SEARCH. More... | |
ulint | free |
Offset in bytes of the first free position for user data in the block. More... | |
ulint | start |
The value of the struct field 'free' at the creation of the block. More... | |
std::atomic< buf_block_t * > * | free_block_ptr |
buf_block_t * | buf_block |
The info structure stored at the beginning of a heap block.
mem_block_info_t::UT_LIST_BASE_NODE_T_EXTERN | ( | mem_block_t | , |
list | |||
) |
In the first block of the list this is the base node of the list of blocks; in subsequent blocks this is undefined.
mem_block_info_t::UT_LIST_NODE_T | ( | mem_block_t | ) |
This contains pointers to next and prev in the list.
The first block allocated to the heap is also the first block in this list, though it also contains the base node of the list.
buf_block_t* mem_block_info_t::buf_block |
char mem_block_info_t::file_name[16] |
File name where the mem heap was created.
ulint mem_block_info_t::free |
Offset in bytes of the first free position for user data in the block.
std::atomic<buf_block_t *>* mem_block_info_t::free_block_ptr |
ulint mem_block_info_t::len |
Physical length of this block in bytes.
ulint mem_block_info_t::line |
Line number where the mem heap was created.
uint64_t mem_block_info_t::magic_n |
Magic number for debugging.
ulint mem_block_info_t::start |
The value of the struct field 'free' at the creation of the block.
ulint mem_block_info_t::total_size |
Physical length in bytes of all blocks in the heap.
This is defined only in the base node and is set to ULINT_UNDEFINED in others.
ulint mem_block_info_t::type |
Type of heap: MEM_HEAP_DYNAMIC, or MEM_HEAP_BUF possibly ORed to MEM_HEAP_BTR_SEARCH.