Fix debug build after clean reset

This commit is contained in:
Moe Charm (CI)
2025-12-05 20:43:14 +09:00
parent 4c986fa9d1
commit 3e1d7c3798
6 changed files with 41 additions and 6 deletions

View File

@ -258,6 +258,8 @@ shared_pool_release_slab(SuperSlab* ss, int slab_idx)
} else {
#if !HAKMEM_BUILD_RELEASE
if (dbg == 1) {
uint32_t active_blocks = atomic_load_explicit(&ss->total_active_blocks, memory_order_acquire);
uint32_t ss_refs = superslab_ref_get(ss);
fprintf(stderr,
"[SP_SLOT_RELEASE] SKIP free ss=%p: total_active_blocks=%u refcount=%u\n",
(void*)ss,