Summary of Deletions:
- Remove core/box/unified_batch_box.c (26 lines)
* Legacy batch allocation logic superseded by Alloc Gatekeeper Box
* unified_cache now handles allocation aggregation
- Remove core/box/unified_batch_box.h (29 lines)
* Header declarations for deprecated unified_batch_box module
- Remove core/tiny_free_fast.inc.h (329 lines)
* Legacy fast-path free implementation
* Functionality consolidated into:
- tiny_free_gate_box.h (Fail-Fast layer + diagnostics)
- malloc_tiny_fast.h (Free path integration)
- unified_cache (return to freelist)
* Code path now routes through Gatekeeper Box for consistency
Build System Updates:
- Update Makefile
* Remove unified_batch_box.o from OBJS_BASE
* Remove unified_batch_box_shared.o from SHARED_OBJS
* Remove unified_batch_box.o from BENCH_HAKMEM_OBJS_BASE
- Update core/hakmem_tiny_phase6_wrappers_box.inc
* Remove unified_batch_box references
* Simplify allocation wrapper to use new Gatekeeper architecture
Impact:
- Removes ~385 lines of redundant/superseded code
- Consolidates allocation logic through unified Gatekeeper entry points
- All functionality preserved via new Box-based architecture
- Simplifies codebase and reduces maintenance burden
Testing:
- Build verification: make clean && make RELEASE=0/1
- Smoke tests: All pass (simple_alloc, loop 10M, pool_tls)
- No functional regressions
Rationale:
After implementing Alloc/Free Gatekeeper Boxes with Fail-Fast layers
and Unified Cache type safety, the legacy separate implementations
became redundant. This commit completes the architectural consolidation
and simplifies the allocator codebase.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
105 lines
4.2 KiB
Makefile
105 lines
4.2 KiB
Makefile
core/tiny_alloc_fast_push.o: core/tiny_alloc_fast_push.c \
|
|
core/hakmem_tiny_config.h core/box/tls_sll_box.h \
|
|
core/box/../hakmem_internal.h core/box/../hakmem.h \
|
|
core/box/../hakmem_build_flags.h core/box/../hakmem_config.h \
|
|
core/box/../hakmem_features.h core/box/../hakmem_sys.h \
|
|
core/box/../hakmem_whale.h core/box/../box/ptr_type_box.h \
|
|
core/box/../hakmem_tiny_config.h core/box/../hakmem_build_flags.h \
|
|
core/box/../hakmem_debug_master.h core/box/../tiny_remote.h \
|
|
core/box/../tiny_region_id.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_super_registry.h core/box/../hakmem_tiny_superslab.h \
|
|
core/box/../superslab/superslab_types.h \
|
|
core/hakmem_tiny_superslab_constants.h \
|
|
core/box/../superslab/superslab_inline.h \
|
|
core/box/../superslab/superslab_types.h \
|
|
core/box/../superslab/../tiny_box_geometry.h \
|
|
core/box/../tiny_debug_ring.h core/box/../tiny_remote.h \
|
|
core/box/../box/ss_addr_map_box.h \
|
|
core/box/../box/../hakmem_build_flags.h core/box/../hakmem_tiny.h \
|
|
core/box/../hakmem_trace.h core/box/../hakmem_tiny_mini_mag.h \
|
|
core/box/../box/hak_lane_classify.inc.h core/box/../tiny_debug_api.h \
|
|
core/box/../hakmem_tiny_integrity.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/hakmem_build_flags.h \
|
|
core/tiny_region_id.h core/superslab/superslab_inline.h \
|
|
core/box/tiny_layout_box.h core/box/tiny_header_box.h \
|
|
core/box/tiny_layout_box.h core/box/../tiny_debug_ring.h \
|
|
core/box/ss_addr_map_box.h core/box/../superslab/superslab_inline.h \
|
|
core/box/tiny_ptr_bridge_box.h \
|
|
core/box/../hakmem_tiny_superslab_internal.h \
|
|
core/box/../box/ss_hot_cold_box.h \
|
|
core/box/../box/../superslab/superslab_types.h \
|
|
core/box/../box/ss_allocation_box.h core/hakmem_tiny_superslab.h \
|
|
core/box/../hakmem_debug_master.h core/box/../hakmem_shared_pool.h \
|
|
core/box/../hakmem_internal.h core/box/../tiny_region_id.h \
|
|
core/box/../hakmem_tiny_integrity.h \
|
|
core/box/../box/slab_freelist_atomic.h core/box/tiny_header_box.h \
|
|
core/box/front_gate_box.h core/hakmem_tiny.h
|
|
core/hakmem_tiny_config.h:
|
|
core/box/tls_sll_box.h:
|
|
core/box/../hakmem_internal.h:
|
|
core/box/../hakmem.h:
|
|
core/box/../hakmem_build_flags.h:
|
|
core/box/../hakmem_config.h:
|
|
core/box/../hakmem_features.h:
|
|
core/box/../hakmem_sys.h:
|
|
core/box/../hakmem_whale.h:
|
|
core/box/../box/ptr_type_box.h:
|
|
core/box/../hakmem_tiny_config.h:
|
|
core/box/../hakmem_build_flags.h:
|
|
core/box/../hakmem_debug_master.h:
|
|
core/box/../tiny_remote.h:
|
|
core/box/../tiny_region_id.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_super_registry.h:
|
|
core/box/../hakmem_tiny_superslab.h:
|
|
core/box/../superslab/superslab_types.h:
|
|
core/hakmem_tiny_superslab_constants.h:
|
|
core/box/../superslab/superslab_inline.h:
|
|
core/box/../superslab/superslab_types.h:
|
|
core/box/../superslab/../tiny_box_geometry.h:
|
|
core/box/../tiny_debug_ring.h:
|
|
core/box/../tiny_remote.h:
|
|
core/box/../box/ss_addr_map_box.h:
|
|
core/box/../box/../hakmem_build_flags.h:
|
|
core/box/../hakmem_tiny.h:
|
|
core/box/../hakmem_trace.h:
|
|
core/box/../hakmem_tiny_mini_mag.h:
|
|
core/box/../box/hak_lane_classify.inc.h:
|
|
core/box/../tiny_debug_api.h:
|
|
core/box/../hakmem_tiny_integrity.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/hakmem_build_flags.h:
|
|
core/tiny_region_id.h:
|
|
core/superslab/superslab_inline.h:
|
|
core/box/tiny_layout_box.h:
|
|
core/box/tiny_header_box.h:
|
|
core/box/tiny_layout_box.h:
|
|
core/box/../tiny_debug_ring.h:
|
|
core/box/ss_addr_map_box.h:
|
|
core/box/../superslab/superslab_inline.h:
|
|
core/box/tiny_ptr_bridge_box.h:
|
|
core/box/../hakmem_tiny_superslab_internal.h:
|
|
core/box/../box/ss_hot_cold_box.h:
|
|
core/box/../box/../superslab/superslab_types.h:
|
|
core/box/../box/ss_allocation_box.h:
|
|
core/hakmem_tiny_superslab.h:
|
|
core/box/../hakmem_debug_master.h:
|
|
core/box/../hakmem_shared_pool.h:
|
|
core/box/../hakmem_internal.h:
|
|
core/box/../tiny_region_id.h:
|
|
core/box/../hakmem_tiny_integrity.h:
|
|
core/box/../box/slab_freelist_atomic.h:
|
|
core/box/tiny_header_box.h:
|
|
core/box/front_gate_box.h:
|
|
core/hakmem_tiny.h:
|