memory_arena
Loading...
Searching...
No Matches
Macros | Functions
arena_internal.h File Reference

Internal utilities and helpers for arena memory management. More...

#include <stdbool.h>
#include <stddef.h>
#include "arena.h"
+ Include dependency graph for arena_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARENA_LOCK(arena)   ((void) 0)
 Acquire the mutex lock if thread safety is enabled.
 
#define ARENA_UNLOCK(arena)   ((void) 0)
 

Functions

bool arena_is_valid (const t_arena *arena)
 Check whether the given arena is in a valid, initialized state.
 
void arena_update_peak (t_arena *arena)
 Update the arena’s peak memory usage if the current usage exceeds it.
 
void arena_zero_metadata (t_arena *arena)
 Zero out and reset all debug/stats metadata associated with the arena.
 
size_t default_grow_cb (size_t current_size, size_t requested_size)
 Default growth policy callback for arena resizing.
 

Detailed Description

Internal utilities and helpers for arena memory management.

Author
Toonsa
Date
2025

This header defines functions and macros used internally by the arena system. It includes synchronization macros (ARENA_LOCK, ARENA_UNLOCK), metadata utilities, and default logic for peak tracking and growth behavior.

These APIs are not intended for external use and may change without notice.

Definition in file arena_internal.h.

Macro Definition Documentation

◆ ARENA_LOCK

#define ARENA_LOCK (   arena)    ((void) 0)

◆ ARENA_UNLOCK

#define ARENA_UNLOCK (   arena)    ((void) 0)