|
|
cef99b311d
|
Phase 15: Box Separation (partial) - Box headers completed, routing deferred
**Status**: Box FG V2 + ExternalGuard 実装完了、hak_free_at routing は Phase 14-C に revert
**Files Created**:
1. core/box/front_gate_v2.h (98 lines)
- Ultra-fast 1-byte header classification (TINY/POOL/MIDCAND/EXTERNAL)
- Performance: 2-5 cycles
- Same-page guard added (防御的プログラミング)
2. core/box/external_guard_box.h (146 lines)
- ENV-controlled mincore safety check
- HAKMEM_EXTERNAL_GUARD_MINCORE=0/1 (default: OFF)
- Uses __libc_free() to avoid infinite loop
**Routing**:
- hak_free_at reverted to Phase 14-C (classify_ptr-based, stable)
- Phase 15 routing caused SEGV on page-aligned pointers
**Performance**:
- Phase 14-C (mincore ON): 16.5M ops/s (stable)
- mincore: 841 calls/100K iterations
- mincore OFF: SEGV (unsafe AllocHeader deref)
**Next Steps** (deferred):
- Mid/Large/C7 registry consolidation
- AllocHeader safety validation
- ExternalGuard integration
**Recommendation**: Stick with Phase 14-C for now
- mincore overhead acceptable (~1.9ms / 100K)
- Focus on other bottlenecks (TLS SLL, SuperSlab churn)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-15 22:08:51 +09:00 |
|