From 43c7dd3adf482b80287ee672fca660d0027cb2e5 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 03:42:42 -0800 Subject: [PATCH] Bump RUNTIME_VERSION to 1884: a device's teardown racing the exit leaves the device to the process's end holds-exit: a device whose last reference drops on a handler thread while the program exits was torn down in full under the exit hook, and vkDestroyDevice (the validation layer, then NVIDIA) took 0.3-2.6 s on the 5080, past the hook's 2 s bound (round 9bd38c7994 lane 10, handler_learns_exit 2.08 s). The teardown now checks the guard before its wait for idle, its pipeline caches and memory, and vkDestroyDevice, and once the exit has closed it leaves the rest to the process's end; with no exit racing it nothing changes. Past half its bound the hook now names where the sections it waits for began. Verified by holds on the 5080 (holds-exit-3, 60 runs each): exit median/p90/max 478/932/1130 -> 206/411/590 ms, exits of 500 ms or more 29 -> 1, hook wait 0.17-1.03 s -> 1-7.5 ms; tests::exit_guard 46/46 on gem10 (8041). --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 92154b547..7d11b27fd 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -b8a6868323229e63ad3c11de89960052b98381253a8e40c082379dbd31cb2aeb +1da0dc2fdfba7d9e94989ecc98149534e79f8f63f87dbceb05c4bcae1c14b5c9 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index f5395335d..f7398181f 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 493; /// 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 = 1883; +pub const RUNTIME_VERSION: u32 = 1884; /// 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