Merge separate g_tls_sll_head[] and g_tls_sll_count[] arrays into unified TinyTLSSLL struct to improve L1D cache locality. Expected performance gain: +12-18% from reducing cache line splits (2 loads → 1 load per operation). Changes: - core/hakmem_tiny.h: Add TinyTLSSLL type (16B aligned, head+count+pad) - core/hakmem_tiny.c: Replace separate arrays with g_tls_sll[8] - core/box/tls_sll_box.h: Update Box API (13 sites) for unified access - Updated 32+ files: All g_tls_sll_head[i] → g_tls_sll[i].head - Updated 32+ files: All g_tls_sll_count[i] → g_tls_sll[i].count - core/hakmem_tiny_integrity.h: Unified canary guards - core/box/integrity_box.c: Simplified canary validation - Makefile: Added core/box/tiny_sizeclass_hist_box.o to link Build: ✅ PASS (10K ops sanity test) Warnings: Only pre-existing LTO type mismatches (unrelated) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
2.4 KiB
Makefile
62 lines
2.4 KiB
Makefile
hakmem_shared_pool.o: core/hakmem_shared_pool.c core/hakmem_shared_pool.h \
|
|
core/superslab/superslab_types.h core/hakmem_tiny_superslab_constants.h \
|
|
core/hakmem_tiny_superslab.h core/superslab/superslab_inline.h \
|
|
core/superslab/superslab_types.h core/tiny_debug_ring.h \
|
|
core/hakmem_build_flags.h core/tiny_remote.h \
|
|
core/hakmem_tiny_superslab_constants.h core/box/ss_slab_meta_box.h \
|
|
core/box/../superslab/superslab_types.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_build_flags.h \
|
|
core/box/../tiny_box_geometry.h \
|
|
core/box/../hakmem_tiny_superslab_constants.h \
|
|
core/box/../hakmem_tiny_config.h core/box/../ptr_track.h \
|
|
core/box/../hakmem_tiny_integrity.h core/box/../hakmem_tiny.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/../box/tiny_next_ptr_box.h core/hakmem_tiny_config.h \
|
|
core/tiny_nextptr.h core/box/../tiny_debug_ring.h \
|
|
core/box/../hakmem_super_registry.h core/box/../hakmem_tiny_superslab.h \
|
|
core/box/free_local_box.h core/hakmem_tiny_superslab.h \
|
|
core/hakmem_policy.h
|
|
core/hakmem_shared_pool.h:
|
|
core/superslab/superslab_types.h:
|
|
core/hakmem_tiny_superslab_constants.h:
|
|
core/hakmem_tiny_superslab.h:
|
|
core/superslab/superslab_inline.h:
|
|
core/superslab/superslab_types.h:
|
|
core/tiny_debug_ring.h:
|
|
core/hakmem_build_flags.h:
|
|
core/tiny_remote.h:
|
|
core/hakmem_tiny_superslab_constants.h:
|
|
core/box/ss_slab_meta_box.h:
|
|
core/box/../superslab/superslab_types.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_build_flags.h:
|
|
core/box/../tiny_box_geometry.h:
|
|
core/box/../hakmem_tiny_superslab_constants.h:
|
|
core/box/../hakmem_tiny_config.h:
|
|
core/box/../ptr_track.h:
|
|
core/box/../hakmem_tiny_integrity.h:
|
|
core/box/../hakmem_tiny.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/../box/tiny_next_ptr_box.h:
|
|
core/hakmem_tiny_config.h:
|
|
core/tiny_nextptr.h:
|
|
core/box/../tiny_debug_ring.h:
|
|
core/box/../hakmem_super_registry.h:
|
|
core/box/../hakmem_tiny_superslab.h:
|
|
core/box/free_local_box.h:
|
|
core/hakmem_tiny_superslab.h:
|
|
core/hakmem_policy.h:
|