Phase 82 Final: Documentation of mid_desc race fix and comprehensive A/B results
**Implementation Summary:** - Early `mid_desc_init_once()` in `hak_pool_init_impl()` prevents uninitialized mutex crash - Eliminates race condition that caused C7_SAFE + flatten crashes - Enables safe operation across all profiles (C7_SAFE, LEGACY) **Benchmark Results (C6_HEAVY_LEGACY_POOLV1, Release):** - Phase 1 (Baseline): 3.03M / 14.86M / 26.67M ops/s (10K/100K/1M) - Phase 2 (Zero Mode): +5.0% / -2.7% / -0.2% - Phase 3 (Flatten): +3.7% / +6.1% / -5.0% - Phase 4 (Combined): -5.1% / +8.8% / +2.0% (best at 100K: +8.8%) - Phase 5 (C7_SAFE Safety): NO CRASH ✅ (all iterations stable) **Mainline Policy:** - mid_desc initialization: Always enabled (crash prevention) - Flatten: Default OFF (bench opt-in via HAKMEM_POOL_V1_FLATTEN_ENABLED=1) - Zero Mode: Default FULL (bench opt-in via HAKMEM_POOL_ZERO_MODE=header) - Workload-specific: Medium (100K) benefits most (+8.8%) **Documentation Updated:** - CURRENT_TASK.md: Added Phase 82 conclusions with benchmark table - MID_LARGE_CPU_HOTPATH_ANALYSIS.md: Added Phase 82 Final with workload analysis 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@ -9,6 +9,9 @@ static void hak_pool_init_impl(void) {
|
||||
const FrozenPolicy* pol = hkm_policy_get();
|
||||
(void)pol;
|
||||
|
||||
// Ensure descriptor registry is ready before any adopt/lookup (C7_SAFE early access guard)
|
||||
mid_desc_init_once();
|
||||
|
||||
// Phase 6.21 CRITICAL FIX: Bridge classes are hardcoded in g_class_sizes,
|
||||
// NOT from Policy. DO NOT overwrite them with 0!
|
||||
// The code below was disabling Bridge classes by setting them to 0
|
||||
|
||||
Reference in New Issue
Block a user