CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
arena Struct Reference

A thread local mini "heap" used for thread local memory allocation. More...

#include <Arena.h>

Public Attributes

void * heap_base
void * heap_ptr
size_t capacity
size_t bytes_available
struct linked_list_nodeheap_allocations_head
struct linked_list_nodeheap_allocations_current

Detailed Description

A thread local mini "heap" used for thread local memory allocation.

This data structure is used to maximize cache-friendliness by making addressing predictable and by making allocations cache-line-aligned

Member Data Documentation

◆ bytes_available

size_t arena::bytes_available

◆ capacity

size_t arena::capacity

◆ heap_allocations_current

struct linked_list_node* arena::heap_allocations_current

◆ heap_allocations_head

struct linked_list_node* arena::heap_allocations_head

◆ heap_base

void* arena::heap_base

◆ heap_ptr

void* arena::heap_ptr

The documentation for this struct was generated from the following file:
  • include/CNum/DataStructs/Memory/Arena.h