Commit Graph

2 Commits

Author SHA1 Message Date
710541b69e MID-V3 Phase 3-5: RegionId integration, alloc/free implementation
- MID-V3-3: RegionId integration (page registration at carve)
  - mid_segment_v3_carve_page(): Register with RegionIdBox
  - mid_segment_v3_return_page(): Unregister from RegionIdBox
  - Uses REGION_KIND_MID_V3 for region identification

- MID-V3-4: Allocation fast path implementation
  - mid_hot_v3_alloc_slow(): Slow path for lane miss
  - mid_cold_v3_refill_page(): Segment-based page allocation
  - mid_lane_refill_from_page(): Batch transfer (16 items default)
  - mid_page_build_freelist(): Initial freelist construction

- MID-V3-5: Free/cold path implementation
  - mid_hot_v3_free(): RegionIdBox lookup based free
  - mid_page_push_free(): Page freelist push
  - Local/remote page detection via lane ownership

ENV controls (default OFF):
  HAKMEM_MID_V3_ENABLED=1
  HAKMEM_MID_V3_CLASSES=0xC0 (C6+C7)
  HAKMEM_MID_V3_DEBUG=1

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 00:53:42 +09:00
2b35de2123 MID-V3 Phase 0-2: Design doc, type skeleton, and RegionIdBox API
- MID-V3-0: Create design doc (docs/analysis/MID_POOL_V3_DESIGN.md)
  - Lane vs Page role clarification
  - Phase plan and checklist

- MID-V3-1: Type skeleton + ENV
  - MidHotBoxV3, MidLaneV3, MidPageDescV3 structures
  - ENV controls (HAKMEM_MID_V3_ENABLED, HAKMEM_MID_V3_CLASSES)
  - Cold interface declarations

- MID-V3-2 (V6-HDR-2): RegionIdBox Registration API completion
  - RegionEntry structure with sorted array storage
  - Binary search lookup implementation
  - region_id_register_v6() / region_id_unregister_v6()
  - REGION_KIND_MID_V3 added to enum

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 00:46:25 +09:00