MySQL 9.1.0
Source Code Documentation
ut0new.cc File Reference

Instrumented memory allocator. More...

#include "univ.i"
#include "my_compiler.h"
#include "ut0new.h"

Functions

void ut_new_boot ()
 Setup the internal objects needed for ut::new_withkey() to operate. More...
 
void ut_new_boot_safe ()
 Setup the internal objects needed for ut::*_withkey() to operate. More...
 

Variables

const size_t large_page_default_size = ut::detail::large_page_size()
 System-default huge (large) page setting. More...
 
const size_t alloc_max_retries = 60
 Maximum number of retries to allocate memory. More...
 
PSI_memory_key mem_key_ahi
 Keys for registering allocations with performance schema. More...
 
PSI_memory_key mem_key_archive
 
PSI_memory_key mem_key_buf_buf_pool
 
PSI_memory_key mem_key_buf_stat_per_index_t
 
PSI_memory_key mem_key_clone
 Memory key for clone. More...
 
PSI_memory_key mem_key_dict_stats_bg_recalc_pool_t
 
PSI_memory_key mem_key_dict_stats_index_map_t
 
PSI_memory_key mem_key_dict_stats_n_diff_on_level
 
PSI_memory_key mem_key_fil_space_t
 
PSI_memory_key mem_key_lock_sys
 
PSI_memory_key mem_key_other
 
PSI_memory_key mem_key_partitioning
 
PSI_memory_key mem_key_row_log_buf
 
PSI_memory_key mem_key_ddl
 
PSI_memory_key mem_key_std
 
PSI_memory_key mem_key_trx_sys_t_rw_trx_ids
 
PSI_memory_key mem_key_undo_spaces
 
PSI_memory_key mem_key_ut_lock_free_hash_t
 

Detailed Description

Instrumented memory allocator.

Created May 26, 2014 Vasil Dimov

Function Documentation

◆ ut_new_boot()

void ut_new_boot ( )

Setup the internal objects needed for ut::new_withkey() to operate.

Setup the internal objects needed for ut::*_withkey() to operate.

This must be called before the first call to ut::new_withkey().

◆ ut_new_boot_safe()

void ut_new_boot_safe ( )

Setup the internal objects needed for ut::*_withkey() to operate.

This must be called before the first call to ut::*_withkey(). This version of function might be called several times and it will simply skip all calls except the first one, during which the initialization will happen.

Variable Documentation

◆ alloc_max_retries

const size_t alloc_max_retries = 60

Maximum number of retries to allocate memory.

◆ large_page_default_size

const size_t large_page_default_size = ut::detail::large_page_size()

System-default huge (large) page setting.

◆ mem_key_ahi

PSI_memory_key mem_key_ahi

Keys for registering allocations with performance schema.

Keep this list alphabetically sorted.

◆ mem_key_archive

PSI_memory_key mem_key_archive

◆ mem_key_buf_buf_pool

PSI_memory_key mem_key_buf_buf_pool

◆ mem_key_buf_stat_per_index_t

PSI_memory_key mem_key_buf_stat_per_index_t

◆ mem_key_clone

PSI_memory_key mem_key_clone

Memory key for clone.

◆ mem_key_ddl

PSI_memory_key mem_key_ddl

◆ mem_key_dict_stats_bg_recalc_pool_t

PSI_memory_key mem_key_dict_stats_bg_recalc_pool_t

◆ mem_key_dict_stats_index_map_t

PSI_memory_key mem_key_dict_stats_index_map_t

◆ mem_key_dict_stats_n_diff_on_level

PSI_memory_key mem_key_dict_stats_n_diff_on_level

◆ mem_key_fil_space_t

PSI_memory_key mem_key_fil_space_t

◆ mem_key_lock_sys

PSI_memory_key mem_key_lock_sys

◆ mem_key_other

PSI_memory_key mem_key_other

◆ mem_key_partitioning

PSI_memory_key mem_key_partitioning

◆ mem_key_row_log_buf

PSI_memory_key mem_key_row_log_buf

◆ mem_key_std

PSI_memory_key mem_key_std

◆ mem_key_trx_sys_t_rw_trx_ids

PSI_memory_key mem_key_trx_sys_t_rw_trx_ids

◆ mem_key_undo_spaces

PSI_memory_key mem_key_undo_spaces

◆ mem_key_ut_lock_free_hash_t

PSI_memory_key mem_key_ut_lock_free_hash_t