Shared runtime/Store pages

This replaces the fixed 1 GiB runtime split with one persisted 64 KiB page provider. It removes the previous runtime extent rows/tags and fixed codec partition. Runtime layouts through 16 KiB share compact mixed-class spans; larger or more aligned layouts own direct runs. Whole empty runtime pages and empty retained Store arenas return to one pool. Live allocations stay pinned across calls and await. Store uses 17-page runs (one metadata page plus 1 MiB buddy data), with no 2 MiB alignment gaps. Native collections retain admitted direct typed access.

The common control page at 2 MiB admits only its first 512 bytes to Store root access. Provider owner/start/end bitmaps and summaries end at byte 50,560. This metadata covers the platform bound without claiming payload memory. The known bootstrap page remains at 16 MiB, and normal initial memory ends at 16 MiB+64 KiB. Intervening pages are free shared capacity. The 6 GiB address maximum is global, not a runtime quota; smaller configured limits, fragmentation and IC cycle/memory checks can prevent a claim. Wasm high-water does not shrink when ownership ends.

Raw format 3 KEEP checks run before resetting stack/statics. Runtime recovery validates saved bounds/table authority before freeing only old runtime runs; it does not touch old payload. Recovery completes before new argument decoding and is not repeated by Store reopen. Quiescence is still required before upgrade. Earlier formats reject, with no compatibility adapter. Recycled Store claims zero previously committed bytes before exposure; growth pages are zero already. The exact-run release API is unsafe and rejects partial/double/wrong owner releases. It does not make stale pointers valid after reuse.

The provider engine lives in Store's memory helper and also backs native Vec snapshots. Safe sparse regions reject all access forms into runtime/control/free holes. Native Vec can relocate only outside loans; Wasm offsets stay pinned across growth. No second Store locator, universal object directory lookup or per-byte translation is introduced.

Native qualification so far:

  • 10 provider tests cover dense Store capacity beyond 4 GiB, absolute alignment, 64-bit addresses, native control relocation, temporal disjointness, exact release/OOM, bootstrap exclusion, zeroed reuse and Runtime-only recovery.
  • 36 platform/transformer tests pass, including startup guards, final memory declarations, Wire validation and page-profile preparation.
  • 15 SDK/async native tests pass; two existing documentation examples are ignored.
  • The Store author reports 965 tests across 133 targets for Store, Collections and Bench, including sparse bounds, image reopen, whole-arena release and stale admission. Source bfb4c6c7 was integrated without a second allocator catalog.

Commands use the pinned compiler and checksum freshness from ver1/tools/env.sh. Both application and IC host workspaces also pass all-bin locked/offline checks. Raw native logs are in the shared ignored output rrt/tmp/perf-round9/shared-pages/native. Actual lifecycle qualification now passes on frozen b4294990 with four newly built Wasms and the existing 65 transition / 24 layout-boundary byte oracles, Store/runtime interleave, sparse 1.5 GiB runtime allocation and release/reuse, retained addresses above 4 GiB, zeroed reuse, query/trap rollback, old-format rejection and a 256 KiB upgrade input decoded before Store reopen. The independent review checks 515 source entries, 561 execution inputs, artifact hashes and server cleanup. Official PocketIC 16 receipts and actual results are preserved in the SDK packet; the original run is rrt/tmp/perf-round9/shared-pages-lifecycle/run-b4294990.

The separate populated SDK screen passes all 96 intervals / 856 updates on current combined Wire/provider/Store code be687a22. Relative to the first-ten snapshot, aggregate instructions fall 14.017% for heap, 8.743% for retained and 1.380% for stable; the unchanged external control matches instructions and cycles exactly. Historical 296f6309 comparisons still include individual preview regressions. These are combined stack results, not isolated allocator effects or a complete Heavy16 throughput qualification. The previously accepted ten-item Heavy16 result remains evidence for its own earlier exact source.