MySQL 8.4.2
Source Code Documentation
|
Template specialization for RAM-based allocation/deallocation. More...
#include <memutils.h>
Static Public Member Functions | |
static void * | allocate (size_t bytes) |
Allocates memory from RAM. More... | |
static void | deallocate (void *ptr, size_t bytes) |
Deallocates memory from RAM. More... | |
Static Private Member Functions | |
static void * | fetch (size_t bytes) |
static void | drop (void *ptr, size_t bytes) |
Static Private Attributes | |
static const bool | linux_numa_available = numa_available() != -1 |
Set to true if Linux's numa_available() reports "available" (!= -1). More... | |
Template specialization for RAM-based allocation/deallocation.
|
inlinestatic |
Allocates memory from RAM.
Linux:
Throws Result::OUT_OF_MEM if allocation was unsuccessful.
[in] Size of the memory to be allocated.
|
inlinestatic |
Deallocates memory from RAM.
[in] Pointer to the memory to be deallocated.. [in] Size of the memory to be deallocated.
|
inlinestaticprivate |
|
inlinestaticprivate |
|
staticprivate |
Set to true if Linux's numa_available() reports "available" (!= -1).