Add TinyHeap class mask and extend routing

This commit is contained in:
Moe Charm (CI)
2025-12-07 22:49:28 +09:00
parent 9c68073557
commit a6991ec9e4
23 changed files with 433 additions and 211 deletions

View File

@ -21,6 +21,7 @@
#include "box/c7_meta_used_counter_box.h"
#include "box/tiny_header_box.h" // Header Box: Single Source of Truth for header operations
#include "box/tiny_front_config_box.h" // Phase 7-Step6-Fix: Config macros for dead code elimination
#include "box/tiny_heap_env_box.h" // TinyHeap front gate (C7 TinyHeapBox)
#include "hakmem_tiny_integrity.h"
#include "box/tiny_next_ptr_box.h"
#include "tiny_region_id.h" // For HEADER_MAGIC/HEADER_CLASS_MASK (prepare header before SLL push)
@ -305,6 +306,11 @@ int sll_refill_small_from_ss(int class_idx, int max_take)
return 0;
}
// TinyHeap front で扱うクラスは TLS SLL を使わないTinyHeapBox 内で完結)。
if (tiny_heap_class_route_enabled(class_idx)) {
return 0;
}
HAK_CHECK_CLASS_IDX(class_idx, "sll_refill_small_from_ss");
atomic_fetch_add(&g_integrity_check_class_bounds, 1);