Fix: Enable SuperSlab backend by default to resolve OOM.

Previously,  was not defined at compile-time,
disabling the SuperSlab backend's fallback to the legacy path and causing OOMs.
This commit sets  to 1 in
and ensures its inclusion in .
This commit is contained in:
Moe Charm (CI)
2025-11-30 15:08:45 +09:00
parent a50ee0eb5b
commit 0558a9391d
2 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,13 @@
# define HAKMEM_TINY_PHASE6_BOX_REFACTOR 1
#endif
// SuperSlab backend toggle (compile-time)
// Default: 1 (ON) - SuperSlab is the core architecture.
// Set to 0 only for legacy/compat testing.
#ifndef HAKMEM_TINY_USE_SUPERSLAB
# define HAKMEM_TINY_USE_SUPERSLAB 1
#endif
// ------------------------------------------------------------
// Phase 7: Region-ID Direct Lookup (Header-based optimization)
// ------------------------------------------------------------

View File

@ -6,6 +6,7 @@
#ifndef HAKMEM_TINY_SUPERSLAB_INTERNAL_H
#define HAKMEM_TINY_SUPERSLAB_INTERNAL_H
#include "hakmem_build_flags.h" // CRITICAL: Ensure HAKMEM_TINY_USE_SUPERSLAB is defined
#include "hakmem_tiny_superslab.h"
#include "box/ss_hot_cold_box.h"
#include "box/ss_allocation_box.h" // CRITICAL: For superslab_allocate() declaration (fixes implicit int assumption)