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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user