diff --git a/core/hakmem_tiny_slow.inc b/core/hakmem_tiny_slow.inc index 5affa2f3..0adaf2dd 100644 --- a/core/hakmem_tiny_slow.inc +++ b/core/hakmem_tiny_slow.inc @@ -75,6 +75,7 @@ static void* __attribute__((cold, noinline)) hak_tiny_alloc_slow(size_t size, in HAK_RET_ALLOC(class_idx, ss_ptr); } +#if !HAKMEM_BUILD_RELEASE tiny_alloc_dump_tls_state(class_idx, "slow_fail", &g_tls_slabs[class_idx]); // Optional one-shot debug when final slow path fails static int g_alloc_dbg = -1; if (__builtin_expect(g_alloc_dbg == -1, 0)) { const char* e=getenv("HAKMEM_TINY_ALLOC_DEBUG"); g_alloc_dbg = (e && atoi(e)!=0)?1:0; } @@ -84,6 +85,7 @@ static void* __attribute__((cold, noinline)) hak_tiny_alloc_slow(size_t size, in fprintf(stderr, "[ALLOC-SLOW] hak_tiny_alloc_superslab returned NULL class=%d size=%zu\n", class_idx, size); } } +#endif return ss_ptr; }