"Heap" metadata storage scheme

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:11 +03:00
parent 4c11e3ad3d
commit 8430104c19
8 changed files with 3375 additions and 7 deletions
+5
View File
@@ -13,6 +13,11 @@
#pragma GCC visibility push(default)
// Memory allocation alignment (page size is usually optimal)
#ifndef MEM_ALIGNMENT
#define MEM_ALIGNMENT 4096
#endif
inline void* memalign_or_die(size_t alignment, size_t size)
{
void *buf = memalign(alignment, size);