28 #ifndef INCLUDED_SYSDEP_VM
29 #define INCLUDED_SYSDEP_VM
100 LIB_API
bool Decommit(uintptr_t address,
size_t size);
111 LIB_API
bool Protect(uintptr_t address,
size_t size,
int prot);
134 LIB_API
void Free(
void* p,
size_t size = 0);
154 #endif // #ifndef INCLUDED_SYSDEP_VM
void BeginOnDemandCommits()
install a handler that attempts to commit memory whenever a read/write page fault is encountered...
bool Commit(uintptr_t address, size_t size, PageType pageType, int prot)
map physical memory to previously reserved address space.
void EndOnDemandCommits()
decrements the reference count begun by BeginOnDemandCommit and removes the page fault handler when i...
bool Decommit(uintptr_t address, size_t size)
unmap physical memory.
bool Protect(uintptr_t address, size_t size, int prot)
set the memory protection flags for all pages that intersect the given interval.
void ReleaseAddressSpace(void *p, size_t size)
release address space and decommit any memory.
static const size_t largePageSize
void * Allocate(size_t size, PageType pageType, int prot)
reserve address space and commit memory.
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.
void Free(void *p, size_t size)
decommit memory and release address space.