From fa0f18bdae4dd52f3413a974545d1d2bbb548f46 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 12 Nov 2026 21:16:22 -0800 Subject: [PATCH] RUNTIME_VERSION 2188: glibc's free heap handed back; a new memoryless texture reads zero After a large pipeline making, the runtime hands glibc's free heap back (malloc_trim) when more than 256 MiB of it is free, counted in WorkCounts::heap_trims. A new memoryless texture in real memory is cleared to zero by its first move, counted in WorkCounts::memoryless_textures_zeroed, so its resolve never reads a released texture's samples. Both change runtime behaviour, so recorded runtime results from before them are stale. Verified by the changes' own runs. Trim on the XTX: 103 -> 262 -> 215 MiB with 3 trims (24184); the negative control grew to 5456 MiB (24197); lint 24188 and 24192. Memoryless: the test fails without the fix on lavapipe (24186) and the Iris (24195), and passes with it. The runtime suite passes (2429), the lanes 287/287 (24187), clippy and rustdoc 24189 and 24190. Iris steady state: Depth32F 4x 1080p 1.145 ms, the same as before. --- crates/metal2vulkan/src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 8d7f9eb09..ccf85c6e3 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 = 513; /// 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 = 2187; +pub const RUNTIME_VERSION: u32 = 2188; /// 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