12 #ifndef ROC_CORE_HEAP_ARENA_H_
13 #define ROC_CORE_HEAP_ARENA_H_
Heap arena implementation.
static void set_flags(size_t flags)
Set flags, for all instances.
size_t num_guard_failures() const
Get number of guard failures.
virtual void * allocate(size_t size)
Allocate memory.
size_t num_allocations() const
Get number of allocated blocks.
virtual void deallocate(void *)
Deallocate previously allocated memory.
Base class for non-copyable objects.
HeapArenaFlags
Heap arena flags.
@ HeapArenaFlag_EnableLeakDetection
Enable panic if leaks detected in arena destructor.
@ HeapArenaFlag_EnableGuards
Enable panic if memory violation detected when deallocating chunk.
Maximum aligned data unit.