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:
@ -16,7 +16,8 @@ core/front/tiny_unified_cache.o: core/front/tiny_unified_cache.c \
|
||||
core/hakmem_tiny_config.h core/tiny_nextptr.h core/hakmem_build_flags.h \
|
||||
core/tiny_region_id.h core/tiny_box_geometry.h core/ptr_track.h \
|
||||
core/hakmem_super_registry.h core/hakmem_tiny_superslab.h \
|
||||
core/superslab/superslab_inline.h core/front/../hakmem_tiny_superslab.h \
|
||||
core/superslab/superslab_inline.h core/hakmem_tiny.h core/hakmem_trace.h \
|
||||
core/hakmem_tiny_mini_mag.h core/front/../hakmem_tiny_superslab.h \
|
||||
core/front/../superslab/superslab_inline.h \
|
||||
core/front/../box/pagefault_telemetry_box.h
|
||||
core/front/tiny_unified_cache.h:
|
||||
@ -47,6 +48,9 @@ core/ptr_track.h:
|
||||
core/hakmem_super_registry.h:
|
||||
core/hakmem_tiny_superslab.h:
|
||||
core/superslab/superslab_inline.h:
|
||||
core/hakmem_tiny.h:
|
||||
core/hakmem_trace.h:
|
||||
core/hakmem_tiny_mini_mag.h:
|
||||
core/front/../hakmem_tiny_superslab.h:
|
||||
core/front/../superslab/superslab_inline.h:
|
||||
core/front/../box/pagefault_telemetry_box.h:
|
||||
|
||||
Reference in New Issue
Block a user