RUNTIME_VERSION 1970 and the runtime-sources pin for a device recovery carrying events, Private and fresh-page buffers

exitcrash's MadeBeforeRecovery 1a (16 commits, steelbrain/exitcrash-recovery 158e85f26a). Metal keeps
every object across a GPU recovery; the runtime refused each object made on the lost generation, and
a refused encodeSignalEvent:value: ended the consumer's VM. Now a recovery carries events (at the
value the host saw land, with their listeners), Private buffers (new memory that reads zero,
announced) and fresh-page buffers (imported again: same contents() pointer, same bytes, including
those in exportable blocks never exported). Pooled Shared/Managed buffers, no-copy buffers, buffers
over the caller's VkBuffer and exported memory or events stay refused and are counted in the
recovery's notice. Once the line serves past the lost generation and none of its queues' slots is
held, the lost generation comes to rest: carried objects' parts there, its work objects, recyclers
and kept or ahead blocks are freed, carried objects let go of it, and the lost VkDevice goes through
the single DeviceShared::drop path when nothing refused holds it. A generation never recovered pays
a flag load per command buffer and per buffer made, no lock or read-modify-write. The runtime
changed, so RUNTIME_VERSION 1970.

Verified (exitcrash): lavapipe 11612/11626 runtime recovery/event_timeline/detach_lost 26/26, lane
tests under the layer 6/6, clippy plain/cpuicd/gpucfg and Rustdoc clean, refusal_surface --check 0;
Iris 11620 25/25, 7 recoveries in 478 ms ending at 1 live VkDevice; 780M PHOENIX 11621 25/25 with
CARRY-PRIVATE-BLOCK true (the exportable-block carry ran), 9 lost blocks -> 1, 7 recoveries in 351
ms at 1 live VkDevice; negative controls 11618 (no rest: 7 recoveries leave 8 live; nothing
carried: MadeBeforeRecovery); M3 instructions a draw base -> tip 10k 5373 -> 5363, ws 17857 ->
17817, many 14468 -> 14453, 4 threads 20473 -> 20242. Open: a program thread inside a buffer or
event call begun before the carry can race the release of the lost parts (fix next); first-move
zeros (up to 8 MiB) stay until teardown while a refused object holds the lost generation. Here:
the API-signature check, REFUSALS.md and CONFORMANCE-COVERAGE.md regenerate unchanged, cargo fmt
clean.
This commit is contained in:
Anees Iqbal committed 2026-11-09 04:26:59 -08:00
1 parent 4fdaf1de67
commit 154d0e2734
2 files changed
+2 -2

No files matched your search

@@ -1 +1 @@
74a4438399756fa1090944b5390563435b14fe4849acaa23109cc8a1725d4fa4
347c4c2a4ae05b1264cbf14bc3db22b2fb786a9578d30e7944ff9391a1b8d1ff
+1 -1
View File
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 497;
/// changes no behaviour, and then updates that hash alone with the commit saying why, or changes
/// behaviour and also bumps this version. The commit that bumps it says what changed; this comment
/// keeps no history.
pub const RUNTIME_VERSION: u32 = 1969;
pub const RUNTIME_VERSION: u32 = 1970;
/// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex,
/// of the manifest, the build script, and exactly the files the crate roots' module tree compiles