"Heap" metadata storage scheme

This commit is contained in:
Vitaliy Filippov
2025-11-23 15:18:01 +03:00
parent 3ad83e8d13
commit 9264ca96a4
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);