ENV Cleanup Step 2c: Gate debug code in hakmem_tiny_alloc.inc
Gate tiny_alloc_dump_tls_state() call on allocation failure path with HAKMEM_BUILD_RELEASE guard. Performance: 30.15M 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:
@ -327,7 +327,9 @@ void* hak_tiny_alloc(size_t size) {
|
||||
tiny_debug_ring_record(TINY_RING_EVENT_ALLOC_SUCCESS, (uint16_t)class_idx, slow_ptr, 6);
|
||||
HAK_RET_ALLOC_WITH_METRIC(slow_ptr); // Increment stats for slow path success
|
||||
}
|
||||
#if !HAKMEM_BUILD_RELEASE
|
||||
tiny_alloc_dump_tls_state(class_idx, "fail", &g_tls_slabs[class_idx]);
|
||||
#endif
|
||||
tiny_debug_ring_record(TINY_RING_EVENT_ALLOC_NULL, (uint16_t)class_idx, NULL, 0);
|
||||
return slow_ptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user