23#ifndef INCLUDED_STATELESS_ALLOCATORS
24#define INCLUDED_STATELESS_ALLOCATORS
48template<
size_t alignment = allocationAlignment>
62template<vm::PageType pageType = vm::kDefault,
int prot = PROT_READ|PROT_WRITE>
76template<
size_t commitSize = g_LargePageSize, vm::PageType pageType = vm::kDefault,
int prot = PROT_READ|PROT_WRITE>
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning.
Definition: code_annotation.h:40
void Free(void *p, size_t size)
decommit memory and release address space.
Definition: uvm.cpp:113
void * Allocate(size_t size, PageType pageType, int prot)
reserve address space and commit memory.
Definition: uvm.cpp:98
void ReleaseAddressSpace(void *p, size_t size)
release address space and decommit any memory.
Definition: uvm.cpp:49
void * ReserveAddressSpace(size_t size, size_t commitSize, PageType pageType, int prot)
reserve address space and set the parameters for any later on-demand commits.
Definition: uvm.cpp:40
void rtl_FreeAligned(void *alignedPointer)
Definition: gcc.cpp:93
void * rtl_AllocateAligned(size_t size, size_t alignment)
Definition: gcc.cpp:66
Definition: stateless_allocators.h:78
void * allocate(size_t size)
Definition: stateless_allocators.h:79
void deallocate(void *p, size_t size)
Definition: stateless_allocators.h:84
Definition: stateless_allocators.h:50
void deallocate(void *p, size_t size)
Definition: stateless_allocators.h:56
void * allocate(size_t size)
Definition: stateless_allocators.h:51
Definition: stateless_allocators.h:36
void deallocate(void *p, size_t size)
Definition: stateless_allocators.h:42
void * allocate(size_t size)
Definition: stateless_allocators.h:37
Definition: stateless_allocators.h:64
void deallocate(void *p, size_t size)
Definition: stateless_allocators.h:70
void * allocate(size_t size)
Definition: stateless_allocators.h:65