tiny: fix TLS list next_off scope; default TLS_LIST=1; add sentinel guards; header-aware TLS ops; release quiet for benches

This commit is contained in:
HakmemBot
2025-11-11 10:00:36 +09:00
parent 8feeb63c2b
commit 5b31629650
19 changed files with 231 additions and 79 deletions

View File

@ -743,7 +743,8 @@ static inline void* hak_tiny_alloc_superslab(int class_idx) {
// }
meta->used++;
// Debug: Log first C7 alloc for path verification
// Debug: Log first C7 alloc for path verification (debug-only)
#if HAKMEM_DEBUG_VERBOSE
if (class_idx == 7) {
static _Atomic int c7_alloc_count = 0;
int count = atomic_fetch_add_explicit(&c7_alloc_count, 1, memory_order_relaxed);
@ -756,6 +757,7 @@ static inline void* hak_tiny_alloc_superslab(int class_idx) {
fprintf(stderr, "[C7_FIRST_ALLOC] ptr=%p next=%p slab_idx=%d\n", block, next, slab_idx);
}
}
#endif
// Track active blocks in SuperSlab for conservative reclamation
ss_active_inc(ss);