ENV Cleanup Step 8: Gate HAKMEM_SUPER_LOOKUP_DEBUG in header

Gate HAKMEM_SUPER_LOOKUP_DEBUG environment variable behind
#if !HAKMEM_BUILD_RELEASE in hakmem_super_registry.h inline function.

Changes:
- Wrap s_dbg initialization in conditional compilation
- Release builds use constant s_dbg = 0 for complete elimination
- Debug logging in hak_super_lookup() now fully compiled out in release

Performance: 30.3M ops/s Larson (stable, no regression)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm (CI)
2025-11-28 01:45:45 +09:00
parent e29823c41e
commit f8b0f38f78
9 changed files with 50 additions and 31 deletions

View File

@ -9,13 +9,13 @@ hakmem_shared_pool.o: core/hakmem_shared_pool.c core/hakmem_shared_pool.h \
core/box/../superslab/superslab_types.h core/box/slab_freelist_atomic.h \
core/box/tiny_next_ptr_box.h core/hakmem_tiny_config.h \
core/tiny_nextptr.h core/tiny_region_id.h core/tiny_box_geometry.h \
core/ptr_track.h core/hakmem_super_registry.h core/box/ss_hot_cold_box.h \
core/box/pagefault_telemetry_box.h core/box/tls_sll_drain_box.h \
core/box/tls_sll_box.h core/box/../hakmem_tiny_config.h \
core/box/../hakmem_build_flags.h core/box/../tiny_remote.h \
core/box/../tiny_region_id.h core/box/../hakmem_tiny_integrity.h \
core/box/../hakmem_tiny.h core/box/../hakmem_build_flags.h \
core/box/../hakmem_trace.h core/box/../hakmem_tiny_mini_mag.h \
core/ptr_track.h core/hakmem_super_registry.h core/hakmem_tiny.h \
core/hakmem_trace.h core/hakmem_tiny_mini_mag.h \
core/box/ss_hot_cold_box.h core/box/pagefault_telemetry_box.h \
core/box/tls_sll_drain_box.h core/box/tls_sll_box.h \
core/box/../hakmem_tiny_config.h core/box/../hakmem_build_flags.h \
core/box/../tiny_remote.h core/box/../tiny_region_id.h \
core/box/../hakmem_tiny_integrity.h core/box/../hakmem_tiny.h \
core/box/../ptr_track.h core/box/../ptr_trace.h \
core/box/../tiny_debug_ring.h core/box/../superslab/superslab_inline.h \
core/box/free_local_box.h core/hakmem_tiny_superslab.h \
@ -43,6 +43,9 @@ core/tiny_region_id.h:
core/tiny_box_geometry.h:
core/ptr_track.h:
core/hakmem_super_registry.h:
core/hakmem_tiny.h:
core/hakmem_trace.h:
core/hakmem_tiny_mini_mag.h:
core/box/ss_hot_cold_box.h:
core/box/pagefault_telemetry_box.h:
core/box/tls_sll_drain_box.h:
@ -53,9 +56,6 @@ core/box/../tiny_remote.h:
core/box/../tiny_region_id.h:
core/box/../hakmem_tiny_integrity.h:
core/box/../hakmem_tiny.h:
core/box/../hakmem_build_flags.h:
core/box/../hakmem_trace.h:
core/box/../hakmem_tiny_mini_mag.h:
core/box/../ptr_track.h:
core/box/../ptr_trace.h:
core/box/../tiny_debug_ring.h: