Parent: #459 Depends on: #471, #476, #477
Goal
Remove the remaining shared-realm allocation, shape, property, element, and publication bottlenecks so allocation-heavy JavaScript scales monotonically toward available cores.
Current evidence
The latest accepted shared object-churn row reaches 1.48x scaling at eight lanes, while compute/property/call rows reach roughly 4.5–7.7x in the same report. Earlier exact-parent work reduced publication batches 37x and improved an eight-lane candidate 4.83x, so remaining work must start from the current runtime rather than repeat pre-reserve diagnoses.
Scope
- Profile allocation fast paths, stable IDs, slab/batch reservation, pressure accounting, shape transitions, fixed-shape caches, backing growth, property/element locks, write barriers, safepoint polling, and reserve-tail retention.
- Introduce per-thread/per-interpreter owned allocation regions, immutable shared shape transitions, sharded metadata, or optimistic/versioned object operations only with explicit tracing and memory-order proofs.
- Reduce false sharing and cache-line bouncing in hot counters, cell headers, shape tokens, pressure state, and object backing metadata.
- Coordinate with #471 so mutation does not trigger compile/invalidation storms.
- Preserve fairness and exact JS program-race semantics; engine state remains race-free.
No-workaround rules
- Do not switch the benchmark to isolated contexts, enable a GIL, remove allocation/GC work, retain all dead objects, use unbounded reserves, or batch across observable safepoints/effects.
- Do not retry rejected owned/sharded enumeration or pressure-accounting designs without new attribution.
Acceptance
- Post-change phase and collapsed-leaf profiles identify the eliminated bottleneck on current exact workload bytes.
- Shared object churn scales monotonically at 1/2/4/8 lanes with material eight-lane improvement and bounded RSS/reserve tails.
- Direct and independent object churn, other shared rows, GC generation/compaction, and cold lifecycle do not regress.
- Full unit, no-GIL corpus, threadfuzz profiles, lifecycle, fault/OOM, and suppression-free TSan pass.
- Causal exact-parent artifacts and the full comparison matrix are published from clean commits.
Foundation
#49/#97/#426/#427/#445; reserve A/B report; reclaimed cursor e690a866.