Commit Graph

1 Commits

Author SHA1 Message Date
babd884b96 Phase v11a-1: Infrastructure - Multi-class segment and learner v2 box definitions
Create core box definitions for MID v3.5 consolidation (Phase v11a):

1. smallobject_segment_mid_v3_box.h
   - Multi-class unified segment (2MiB, C5-C7)
   - Per-class free page stacks
   - SmallHeapCtx_MID_v3 for TLS caching
   - Refill/retire/validation APIs

2. smallobject_stats_mid_v3_box.h
   - SmallPageStatsMID_v3: per-page lifetime stats
   - Aggregation for Learner input
   - Free hit ratio tracking (basis points)

3. smallobject_learner_v2_box.h
   - SmallLearnerStatsV2: multi-class and global metrics
   - Extended from v7 (C5-only ratio) to full workload analysis
   - Per-class retire efficiency, global free hit ratio
   - Decision API for route optimization

4. smallobject_policy_v2_box.h
   - SmallPolicyV2: routing with Learner integration
   - Version-based TLS cache invalidation
   - Route update from Learner stats
   - Backward compatible with v1 interface

Dependency graph:
  segment → stats → learner → policy → malloc routing

Architecture Decision: Option A (MID v3.5 consolidation)
- v7 frozen as C5/C6-only research preset
- MID v3.5 becomes 257-1KiB main implementation
- Learner scope: multi-class tracking (C5 ratio primary, Phase v11a)
- Future (v11b): multi-dimensional optimization

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-12 06:20:01 +09:00