![]() |
MySQL 9.2.0
Source Code Documentation
|
Template specialization for MMAP-based allocation/deallocation. More...
#include <memutils.h>
Static Public Member Functions | |
static void * | allocate (size_t bytes) |
Allocates memory from MMAP-ed file. More... | |
static void | deallocate (void *ptr, size_t bytes) |
Deallocates memory from MMAP-ed file. More... | |
Static Private Member Functions | |
static void * | fetch (size_t bytes) |
static void | drop (void *ptr, size_t bytes) |
Template specialization for MMAP-based allocation/deallocation.
|
inlinestatic |
Allocates memory from MMAP-ed file.
Throws Result::RECORD_FILE_FULL if temptable_use_map is not enabled or if allocation was unsuccessful.
[in] Size of the memory to be allocated.
|
inlinestatic |
Deallocates memory from MMAP-ed file.
[in] Pointer to the memory to be deallocated.. [in] Size of the memory to be deallocated.
|
inlinestaticprivate |
|
inlinestaticprivate |