|
memory_arena
|
Internal utilities and helpers for arena memory management. More...
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. | |
Internal utilities and helpers for arena memory management.
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.
| #define ARENA_LOCK | ( | arena | ) | ((void) 0) |
Acquire the mutex lock if thread safety is enabled.
| arena | Pointer to the arena. |
Definition at line 61 of file arena_internal.h.
| #define ARENA_UNLOCK | ( | arena | ) | ((void) 0) |
Definition at line 62 of file arena_internal.h.