MySQL 8.4.2
Source Code Documentation
|
Allocation routines for non-extended alignment types, as opposed to Aligned_alloc for example. More...
#include <alloc.h>
Static Public Member Functions | |
template<bool Zero_initialized> | |
static void * | alloc (std::size_t size) noexcept |
Dynamically allocates storage of given size. More... | |
static void * | realloc (void *ptr, std::size_t size) noexcept |
Reallocates the given area of memory. More... | |
static void | free (void *ptr) noexcept |
Releases storage dynamically allocated through Alloc::alloc() or Alloc::realloc(). More... | |
Additional Inherited Members | |
Static Public Attributes inherited from ut::detail::allocator_traits< false > | |
static constexpr auto | is_pfs_instrumented_v |
Allocation routines for non-extended alignment types, as opposed to Aligned_alloc for example.
These are only a mere wrappers around standard allocation routines so memory layout representation doesn't look any other than the following:
^ | | ptr to be returned to call-site
DATA segment is a segment that will be returned to the call-site.
|
inlinestaticnoexcept |
Dynamically allocates storage of given size.
[in] | size | Size of storage (in bytes) requested to be allocated. |
|
inlinestaticnoexcept |
Releases storage dynamically allocated through Alloc::alloc() or Alloc::realloc().
[in] | ptr | Pointer to storage allocated through Alloc::alloc() or Alloc::realloc() |
|
inlinestaticnoexcept |
Reallocates the given area of memory.
Behaves as std::realloc() implementation on given platform.
[in] | ptr | Pointer to the memory to be reallocated. |
[in] | size | New size of storage (in bytes) requested to be allocated. |