ENV Cleanup Step 2b: Gate debug code in tiny_superslab_free.inc.h
Gate tiny_alloc_dump_tls_state() call in remote watch debug path with HAKMEM_BUILD_RELEASE guard, consolidating with existing debug fprintf. Performance: 30.3M ops/s (baseline: 30.2M) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -47,9 +47,9 @@ static inline void hak_tiny_free_superslab(void* ptr, SuperSlab* ss) {
|
|||||||
}
|
}
|
||||||
if (__builtin_expect(tiny_remote_watch_is(ptr), 0)) {
|
if (__builtin_expect(tiny_remote_watch_is(ptr), 0)) {
|
||||||
tiny_remote_watch_note("free_enter", ss, slab_idx, ptr, 0xA240u, tiny_self_u32(), 0);
|
tiny_remote_watch_note("free_enter", ss, slab_idx, ptr, 0xA240u, tiny_self_u32(), 0);
|
||||||
|
#if !HAKMEM_BUILD_RELEASE
|
||||||
extern __thread TinyTLSSlab g_tls_slabs[];
|
extern __thread TinyTLSSlab g_tls_slabs[];
|
||||||
tiny_alloc_dump_tls_state(cls, "watch_free_enter", &g_tls_slabs[cls]);
|
tiny_alloc_dump_tls_state(cls, "watch_free_enter", &g_tls_slabs[cls]);
|
||||||
#if !HAKMEM_BUILD_RELEASE
|
|
||||||
extern __thread TinyTLSMag g_tls_mags[];
|
extern __thread TinyTLSMag g_tls_mags[];
|
||||||
TinyTLSMag* watch_mag = &g_tls_mags[cls];
|
TinyTLSMag* watch_mag = &g_tls_mags[cls];
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
|||||||
Reference in New Issue
Block a user