MySQL 8.0.40
Source Code Documentation
block.h File Reference

Block abstraction for temptable-allocator. More...

#include <cstddef>
#include <cstdint>
#include <limits>
#include <sstream>
#include <string>
#include "memory_debugging.h"
#include "my_dbug.h"
#include "mysql/psi/mysql_memory.h"
#include "storage/temptable/include/temptable/chunk.h"
#include "storage/temptable/include/temptable/header.h"
#include "storage/temptable/include/temptable/memutils.h"

Go to the source code of this file.

Classes

class  temptable::Block
 Memory-block abstraction whose purpose is to serve as a building block for custom memory-allocator implementations. More...
 

Namespaces

namespace  temptable
 

Functions

void temptable::Block_PSI_init ()
 Initialize the PSI memory engine. More...
 
void temptable::Block_PSI_track_logical_allocation (size_t size)
 Log logical (Chunk) memory allocation. More...
 
void temptable::Block_PSI_track_logical_deallocation (size_t size)
 Log logical (Chunk) memory deallocation. More...
 
void temptable::Block_PSI_track_physical_ram_allocation (void *ptr, size_t size)
 Log physical memory allocation of a Block located in RAM. More...
 
void temptable::Block_PSI_track_physical_ram_deallocation (uint8_t *ptr)
 Log physical memory deallocation of a Block located in RAM. More...
 
void temptable::Block_PSI_track_physical_disk_allocation (void *ptr, size_t size)
 Log physical memory allocation of a Block located in MMAP-ed file. More...
 
void temptable::Block_PSI_track_physical_disk_deallocation (uint8_t *ptr)
 Log physical memory deallocation of a Block located in MMAP-ed file. More...
 
static uint8_t * temptable::allocate_from (Source src, size_t size)
 
static void temptable::deallocate_from (Source src, size_t size, uint8_t *block_address)
 

Detailed Description

Block abstraction for temptable-allocator.