perf(gpu): list threads' lookups without shared locks (VICTORY_PLACED_SEEN, VICTORY_VIEWS_SHARDED, VICTORY_SHADOW_SHARDED) #331

Manually merged
github merged 2 commits from github-bot/gh-331 into gh-pr/331/base 2026-12-02 22:37:48 +00:00 AGit
Owner

@⁠PiloteCode on GitHub · 2026-12-02 12:27 UTC · original
PiloteCode:pr/list-lookups → main · +622 −65 · 5 files · 2 commits · merged 2026-12-02 22:34 UTC

Summary

The threads that translate list calls (VICTORY_THIN) spend much of their time in short lookups that return the same answer draw after draw, behind locks every one of them takes. Even uncontended, taking a shared RwLock for reading writes its cache line, which then moves between cores on every read. Three cuts, each with its own switch (on unless 0; diagnostics builds can switch each inside a run with VICTORY_AB):

  1. VICTORY_PLACED_SEEN: resource::texture_at (a Mutex over a BTreeMap of 64-byte keys, taken for every view of placed memory a draw reads) is answered from a small per-thread table first. Safe because PLACED_TEXTURES is append-only (a texture made for a place and description is kept for the run); a comment on the table now says so.
  2. VICTORY_VIEWS_SHARDED: the table of every view (descriptor::VIEWS) is read under one of 16 cache-line-padded locks chosen by the reading thread; a writer takes all of them in order. Same exclusion as one RwLock; a thread that reads again while reading reuses its first lock (no writer can wedge between). views_read/views_write keep their try-first-then-count-the-wait shape (ReadMostly::try_write added for that).
  3. VICTORY_SHADOW_SHARDED: the same for the host copies' tables shadow::BUFFERS and shadow::LOOSE.

The three are in our fork's play defaults since 1 Dec.

Changes

  • crates/victory-gpu/src/listcpu.rs (new): the switches, ReadMostly<T> (+ try_read/try_write), Remembered<K, V, N>, hash_words; tests (concurrent readers under both lock modes while the switch flips, never seeing a half write; try-lock behaviour; memo correctness).
  • crates/victory-gpu/src/resource.rs: texture_at -> texture_at_seen / texture_at_table; test a_remembered_placed_texture_is_the_tables (skips without a host device, as the neighbouring test does).
  • crates/victory-gpu/src/descriptor.rs: VIEWS as OnceLock<ReadMostly<Views>>; views_read/views_write.
  • crates/victory-gpu/src/shadow.rs: BUFFERS, LOOSE as ReadMostly; .read()/.write() call sites without unwrap_or_else (poisoning handled inside).
  • crates/victory-gpu/src/lib.rs: mod listcpu;. host.rs untouched.

Rig Specs Tested On (our fork, not this tree)

  • CPU: Intel i9-14900KF (32 logical processors); also held to 12 logical processors (6-core stand-in)
  • GPU & VRAM: RTX 5090 32 GB; 12 GB card-budget stand-in at 1080p for the 12-thread run
  • System RAM: 128 GB; OS: Windows 11; driver not recorded

Run Settings & Profile

  • Method: in-run A/B with VICTORY_AB (7-8 switches, 10 s phases in a mixed order, 56 phases at the busiest place of a saved game), drift fitted; list threads' processor time per phase from the per-thread CPU counters
  • Runs: big-lcpu-2 and big-lcpu-5 (32 threads), big-lcpu-4 (12 threads, 1080p)

Measurements & Verification

Switch List threads' CPU, 32 threads (of 255 ms/frame) List threads' CPU, 12 threads (of 209) Frame median, 32 threads Frame median, 12 threads
PLACED_SEEN -6.6 +- 1.6 ms/frame -3.4 +- 1.6 -0.7 +- 0.5 ms +0.2 +- 0.3 ms
VIEWS_SHARDED -4.1 +- 1.6 -5.5 +- 1.7 +0.1 +- 0.5 -0.5 +- 0.3
SHADOW_SHARDED -5.4 +- 1.5 -4.7 +- 1.6 -0.4 +- 0.5 -0.8 +- 0.3
  • Together about 16 ms of list-thread processor time a frame less on 32 threads and 14 on 12; the frame's median about -1 ms either way (sum of the three). p90 and slowest 1 % unchanged within error (one exception: SHADOW_SHARDED slowest 1 % +3 +- 4 ms, not resolved). Pictures compared at fixed points: the same.
  • MiniVI has no per-thread CPU counters in its A/B lines; the effect should show in its thin_ms (list calls translated by threads of ours per frame) line.
  • Automated checks on this branch (rebased on main 3230974; offline, --locked, toolchain 1.98.1-msvc):
    • cargo clippy --workspace --all-targets --locked -- -D warnings
    • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
    • cargo test (not run by us on this tree)
    • cargo xtask policy (not run; files stay far below the 640 KiB limit)

Limits

  • Measured on our fork; MiniVI already changed nearby code (FxHashMap views index, per-thread shape cache #222, striped locks #285/#287), so its baseline contention is lower and the gain may be smaller than ours.
  • PLACED_SEEN relies on PLACED_TEXTURES never losing an entry: anyone who later evicts entries from that table must turn this off or bump a generation the memo checks.
  • A writer of a sharded table takes 17 locks instead of one; views are written far less often than read (it was a net gain in every run), but it is a trade.
  • Rebased over #322, which changed shadow.rs: it merged without a conflict and passes clippy, but our measurements predate #322.
  • Not run on an 8 GB card or an AMD card.
**@⁠PiloteCode** on GitHub · 2026-12-02 12:27 UTC · [original](https://github.com/Androtim/MiniVI/pull/331) `PiloteCode:pr/list-lookups` → `main` · +622 −65 · 5 files · 2 commits · merged 2026-12-02 22:34 UTC ## Summary The threads that translate list calls (`VICTORY_THIN`) spend much of their time in short lookups that return the same answer draw after draw, behind locks every one of them takes. Even uncontended, taking a shared `RwLock` for reading writes its cache line, which then moves between cores on every read. Three cuts, each with its own switch (on unless `0`; diagnostics builds can switch each inside a run with `VICTORY_AB`): 1. **`VICTORY_PLACED_SEEN`**: `resource::texture_at` (a `Mutex` over a `BTreeMap` of 64-byte keys, taken for every view of placed memory a draw reads) is answered from a small per-thread table first. Safe because `PLACED_TEXTURES` is append-only (a texture made for a place and description is kept for the run); a comment on the table now says so. 2. **`VICTORY_VIEWS_SHARDED`**: the table of every view (`descriptor::VIEWS`) is read under one of 16 cache-line-padded locks chosen by the reading thread; a writer takes all of them in order. Same exclusion as one `RwLock`; a thread that reads again while reading reuses its first lock (no writer can wedge between). `views_read`/`views_write` keep their try-first-then-count-the-wait shape (`ReadMostly::try_write` added for that). 3. **`VICTORY_SHADOW_SHARDED`**: the same for the host copies' tables `shadow::BUFFERS` and `shadow::LOOSE`. The three are in our fork's play defaults since 1 Dec. ## Changes - `crates/victory-gpu/src/listcpu.rs` (new): the switches, `ReadMostly<T>` (+ `try_read`/`try_write`), `Remembered<K, V, N>`, `hash_words`; tests (concurrent readers under both lock modes while the switch flips, never seeing a half write; try-lock behaviour; memo correctness). - `crates/victory-gpu/src/resource.rs`: `texture_at` -> `texture_at_seen` / `texture_at_table`; test `a_remembered_placed_texture_is_the_tables` (skips without a host device, as the neighbouring test does). - `crates/victory-gpu/src/descriptor.rs`: `VIEWS` as `OnceLock<ReadMostly<Views>>`; `views_read`/`views_write`. - `crates/victory-gpu/src/shadow.rs`: `BUFFERS`, `LOOSE` as `ReadMostly`; `.read()/.write()` call sites without `unwrap_or_else` (poisoning handled inside). - `crates/victory-gpu/src/lib.rs`: `mod listcpu;`. `host.rs` untouched. ## Rig Specs Tested On (our fork, not this tree) - **CPU:** Intel i9-14900KF (32 logical processors); also held to 12 logical processors (6-core stand-in) - **GPU & VRAM:** RTX 5090 32 GB; 12 GB card-budget stand-in at 1080p for the 12-thread run - **System RAM:** 128 GB; **OS:** Windows 11; driver not recorded ## Run Settings & Profile - **Method:** in-run A/B with `VICTORY_AB` (7-8 switches, 10 s phases in a mixed order, 56 phases at the busiest place of a saved game), drift fitted; list threads' processor time per phase from the per-thread CPU counters - **Runs:** big-lcpu-2 and big-lcpu-5 (32 threads), big-lcpu-4 (12 threads, 1080p) ## Measurements & Verification | Switch | List threads' CPU, 32 threads (of 255 ms/frame) | List threads' CPU, 12 threads (of 209) | Frame median, 32 threads | Frame median, 12 threads | |---|---:|---:|---:|---:| | `PLACED_SEEN` | **-6.6 +- 1.6 ms/frame** | **-3.4 +- 1.6** | -0.7 +- 0.5 ms | +0.2 +- 0.3 ms | | `VIEWS_SHARDED` | **-4.1 +- 1.6** | **-5.5 +- 1.7** | +0.1 +- 0.5 | **-0.5 +- 0.3** | | `SHADOW_SHARDED` | **-5.4 +- 1.5** | **-4.7 +- 1.6** | -0.4 +- 0.5 | **-0.8 +- 0.3** | - Together about **16 ms of list-thread processor time a frame less on 32 threads and 14 on 12**; the frame's median about -1 ms either way (sum of the three). p90 and slowest 1 % unchanged within error (one exception: `SHADOW_SHARDED` slowest 1 % +3 +- 4 ms, not resolved). Pictures compared at fixed points: the same. - MiniVI has no per-thread CPU counters in its A/B lines; the effect should show in its `thin_ms` (list calls translated by threads of ours per frame) line. - **Automated checks on this branch** (rebased on `main` `3230974`; offline, `--locked`, toolchain 1.98.1-msvc): - [x] `cargo clippy --workspace --all-targets --locked -- -D warnings` - [x] `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` - [ ] `cargo test` (not run by us on this tree) - [ ] `cargo xtask policy` (not run; files stay far below the 640 KiB limit) ## Limits - Measured on our fork; MiniVI already changed nearby code (FxHashMap views index, per-thread shape cache #222, striped locks #285/#287), so its baseline contention is lower and the gain may be smaller than ours. - `PLACED_SEEN` relies on `PLACED_TEXTURES` never losing an entry: anyone who later evicts entries from that table must turn this off or bump a generation the memo checks. - A writer of a sharded table takes 17 locks instead of one; views are written far less often than read (it was a net gain in every run), but it is a trade. - Rebased over #322, which changed `shadow.rs`: it merged without a conflict and passes clippy, but our measurements predate #322. - Not run on an 8 GB card or an AMD card.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 12:31:20 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-12-02 12:49 UTC · original

Read-only security & triage review on 11322318 (external author PiloteCode — awaiting manual owner approval per repository security allowlist policy; not built/executed locally and not auto-merged):

  • Security / Supply-Chain / Clean-Room: Clean. Touches only crates/victory-gpu/src/{descriptor.rs,lib.rs,listcpu.rs,resource.rs,shadow.rs} (+515/-58); no Cargo.toml, build.rs, .github/workflows/, binaries, shell/network calls, or clean-room violations. Note custom unsafe sharded RwLock wrapper (listcpu.rs) + VirtualAlloc test — warrants careful soundness review on approval.
  • Architecture note: High-value lock-contention removal (VICTORY_PLACED_SEEN, VICTORY_VIEWS_SHARDED, VICTORY_SHADOW_SHARDED, default-on with =0 kill-switches). Needs manual owner approval to run CI + plain---release A/B verification.
**@⁠Androtim** on GitHub · 2026-12-02 12:49 UTC · [original](https://github.com/Androtim/MiniVI/pull/331#issuecomment-7345927057) Read-only security & triage review on `11322318` (external author `PiloteCode` — **awaiting manual owner approval** per repository security allowlist policy; not built/executed locally and not auto-merged): - **Security / Supply-Chain / Clean-Room:** Clean. Touches only `crates/victory-gpu/src/{descriptor.rs,lib.rs,listcpu.rs,resource.rs,shadow.rs}` (`+515/-58`); no `Cargo.toml`, `build.rs`, `.github/workflows/`, binaries, shell/network calls, or clean-room violations. Note custom `unsafe` sharded `RwLock` wrapper (`listcpu.rs`) + `VirtualAlloc` test — warrants careful soundness review on approval. - **Architecture note:** High-value lock-contention removal (`VICTORY_PLACED_SEEN`, `VICTORY_VIEWS_SHARDED`, `VICTORY_SHADOW_SHARDED`, default-on with `=0` kill-switches). Needs manual owner approval to run CI + plain-`--release` A/B verification.
Author
Owner

@⁠Androtim on GitHub · 2026-12-02 13:04 UTC · original · edited 2026-12-02 18:02 UTC

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): failing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-12-02 13:04 UTC · [original](https://github.com/Androtim/MiniVI/pull/331#issuecomment-7346307644) · edited 2026-12-02 18:02 UTC <!-- minivi-triage v1 head=113223186b44a99dc841e2f28819cf9e077c6f2b verdict=needs-rebase ci=failing at=2026-12-02T18:02:42Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `failing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-12-02 13:18 UTC · original

Allowlist & Architect Deep Review (PiloteCode is now on the trusted allowlist; CI 46881376625 approved and audited):

Status: triage: needs work — CI 46881376625 Tests step hung > 5 min (live deadlock), confirming the re-entrant ReadMostly::read() self-deadlock bug in crates/victory-gpu/src/listcpu.rs:

  1. Blocking — Re-entrant ReadMostly::read() deadlock (listcpu.rs:245-282, 449-453):

    • Memory-safety / aliasing exclusion of UnsafeCell<T> + Send/Sync bounds + !Send ReadGuard (_held: RwLockReadGuard<'a, ()>) is sound (every writer takes all SHARDS + 1 locks in fixed order 0..=SHARDS).
    • However, std::sync::RwLock (both Windows SRWLOCK and Linux futex) is not recursively re-entrant when a writer is waiting on the same shard. Re-acquiring self.locks[at].0.read() while already holding it deadlocks if a writer queues on self.locks[at] in between. The unit test readers_never_see_a_write_half_done_whichever_lock_they_take exercises this directly (PAIR.read() nested inside PAIR.read() under 2 concurrent writers), causing the live CI hang.
    • Fix: Either make ReadMostly strictly non-reentrant (matching std::sync::RwLock, removing HELD and the nested PAIR.read() in the test after verifying no VIEWS/BUFFERS/LOOSE call site nests reads) or avoid re-acquiring the underlying RwLock while depth > 0 without allowing out-of-order early unlock.
  2. Additional architectural findings to fix in the same pass:

    • Read-only LOOSE.write() stalls (crates/victory-gpu/src/shadow.rs): stale_pages(), spans(), and diagnostics helpers (windows, window_use, memory, window_cover) still call LOOSE.write() for read-only iteration. With ReadMostly, each LOOSE.write() now acquires all 17 shard locks, stalling every recording thread unnecessarily. Switching those read-only sites to LOOSE.read() removes that contention.
    • Unmasked filler words in PLACED_SEEN (crates/victory-gpu/src/resource.rs:texture_at_seen): PLACED_TEXTURES is confirmed append-only, so caching This is sound today. However, texture_at_seen hashes and caches the raw *desc without zeroing filler words desc[1] and desc[13] (unlike texture_at_table), so stack-garbage variations in filler words will cause false misses and duplicate entries in the 1024-slot thread-local cache.
    • Minor: Avoid heap-allocating Vec::with_capacity(SHARDS + 1) on every ReadMostly::try_write(), and fix the a_remembered_placed_texture_is_the_tables eviction loop (currently calls texture_at_seen(..., &buffer), which returns None and never writes to PLACED_SEEN).

Once fixed and CI is green, this will need a plain --release A/B run on main (b0842d93+) before merge.

**@⁠Androtim** on GitHub · 2026-12-02 13:18 UTC · [original](https://github.com/Androtim/MiniVI/pull/331#issuecomment-7346663260) Allowlist & Architect Deep Review (`PiloteCode` is now on the trusted allowlist; CI `46881376625` approved and audited): **Status:** `triage: needs work` — **CI `46881376625` `Tests` step hung > 5 min (live deadlock)**, confirming the re-entrant `ReadMostly::read()` self-deadlock bug in `crates/victory-gpu/src/listcpu.rs`: 1. **Blocking — Re-entrant `ReadMostly::read()` deadlock (`listcpu.rs:245-282, 449-453`):** - Memory-safety / aliasing exclusion of `UnsafeCell<T>` + `Send`/`Sync` bounds + `!Send` `ReadGuard` (`_held: RwLockReadGuard<'a, ()>`) is sound (every writer takes all `SHARDS + 1` locks in fixed order `0..=SHARDS`). - However, `std::sync::RwLock` (both Windows `SRWLOCK` and Linux `futex`) is **not** recursively re-entrant when a writer is waiting on the same shard. Re-acquiring `self.locks[at].0.read()` while already holding it deadlocks if a writer queues on `self.locks[at]` in between. The unit test `readers_never_see_a_write_half_done_whichever_lock_they_take` exercises this directly (`PAIR.read()` nested inside `PAIR.read()` under 2 concurrent writers), causing the live CI hang. - **Fix:** Either make `ReadMostly` strictly non-reentrant (matching `std::sync::RwLock`, removing `HELD` and the nested `PAIR.read()` in the test after verifying no `VIEWS`/`BUFFERS`/`LOOSE` call site nests reads) or avoid re-acquiring the underlying `RwLock` while `depth > 0` without allowing out-of-order early unlock. 2. **Additional architectural findings to fix in the same pass:** - **Read-only `LOOSE.write()` stalls (`crates/victory-gpu/src/shadow.rs`):** `stale_pages()`, `spans()`, and diagnostics helpers (`windows`, `window_use`, `memory`, `window_cover`) still call `LOOSE.write()` for read-only iteration. With `ReadMostly`, each `LOOSE.write()` now acquires **all 17 shard locks**, stalling every recording thread unnecessarily. Switching those read-only sites to `LOOSE.read()` removes that contention. - **Unmasked filler words in `PLACED_SEEN` (`crates/victory-gpu/src/resource.rs:texture_at_seen`):** `PLACED_TEXTURES` is confirmed append-only, so caching `This` is sound today. However, `texture_at_seen` hashes and caches the raw `*desc` without zeroing filler words `desc[1]` and `desc[13]` (unlike `texture_at_table`), so stack-garbage variations in filler words will cause false misses and duplicate entries in the 1024-slot thread-local cache. - **Minor:** Avoid heap-allocating `Vec::with_capacity(SHARDS + 1)` on every `ReadMostly::try_write()`, and fix the `a_remembered_placed_texture_is_the_tables` eviction loop (currently calls `texture_at_seen(..., &buffer)`, which returns `None` and never writes to `PLACED_SEEN`). Once fixed and CI is green, this will need a plain `--release` A/B run on `main` (`b0842d93`+) before merge.
github-bot force-pushed github-bot/gh-331 from 113223186b to 100015c059 2026-12-02 21:12:15 +00:00 Compare
Author
Owner

@⁠PiloteCode on GitHub · 2026-12-02 21:11 UTC · original

Thanks for the deep review. All four points are fixed in 100015c, and the branch is rebased on main (6bad0e0).

1. Re-entrant read() deadlock (blocking). We took the second option: a thread that already reads a ReadMostly table no longer touches its RwLock again. The first read's guard is kept in the thread's HELD slot, nested read()/try_read() only count, and the lock is released when that thread's last guard on the table drops, in whatever order, so dropping out of order never unlocks early. Writers still take all SHARDS + 1 locks in order.

New test a_thread_reads_again_past_a_writer_waiting_for_it: one thread reads, a writer queues behind it, the same thread reads again (read() and try_read()), drops its first guard before the second and checks that no write got in. It fails after 20 s instead of hanging. The stress test (readers_never_see_a_write_half_done_whichever_lock_they_take) keeps its nested PAIR.read().

Checked on listcpu.rs alone (std only), process pinned to 2 logical processors, --test-threads=1, 3 runs each:

stress test new test
before the fix hung 3/3 (no result after 60 s) failed 3/3 (Err(Timeout) after 20 s)
after the fix passed 3/3 (0.20–0.53 s) passed 3/3 (0.21–0.22 s)

2. LOOSE: stale_pages, spans, windows, window_use, memory and window_cover now take LOOSE.read(); only the sites that change the table still write.

3. PLACED_SEEN: texture_at_seen now keys it like PLACED_TEXTURES: both go through a new placed_key, which zeroes filler words 1 and 13 unless VICTORY_PLACED_FILLER=1, as texture_at_table already did.

4. Minor: try_write keeps its guards in an array (std::array::from_fn), no Vec. a_remembered_placed_texture_is_the_tables now fills PLACED_SEEN directly with 4096 keys, so the 1024-slot table really gets crowded.

cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features: clean on 100015c. We did not run the full cargo test here; CI will.

For the --release A/B on main: each part keeps its own switch (VICTORY_PLACED_SEEN, VICTORY_VIEWS_SHARDED, VICTORY_SHADOW_SHARDED; 0 turns it off), so one build can compare them. The figures in the description come from our fork, not from MiniVI's main.

**@⁠PiloteCode** on GitHub · 2026-12-02 21:11 UTC · [original](https://github.com/Androtim/MiniVI/pull/331#issuecomment-7358920518) Thanks for the deep review. All four points are fixed in 100015c, and the branch is rebased on `main` (`6bad0e0`). **1. Re-entrant `read()` deadlock (blocking).** We took the second option: a thread that already reads a `ReadMostly` table no longer touches its `RwLock` again. The first read's guard is kept in the thread's `HELD` slot, nested `read()`/`try_read()` only count, and the lock is released when that thread's last guard on the table drops, in whatever order, so dropping out of order never unlocks early. Writers still take all `SHARDS + 1` locks in order. New test `a_thread_reads_again_past_a_writer_waiting_for_it`: one thread reads, a writer queues behind it, the same thread reads again (`read()` and `try_read()`), drops its first guard before the second and checks that no write got in. It fails after 20 s instead of hanging. The stress test (`readers_never_see_a_write_half_done_whichever_lock_they_take`) keeps its nested `PAIR.read()`. Checked on `listcpu.rs` alone (std only), process pinned to 2 logical processors, `--test-threads=1`, 3 runs each: | | stress test | new test | |---|---|---| | before the fix | hung 3/3 (no result after 60 s) | failed 3/3 (`Err(Timeout)` after 20 s) | | after the fix | passed 3/3 (0.20–0.53 s) | passed 3/3 (0.21–0.22 s) | **2. `LOOSE`:** `stale_pages`, `spans`, `windows`, `window_use`, `memory` and `window_cover` now take `LOOSE.read()`; only the sites that change the table still write. **3. `PLACED_SEEN`:** `texture_at_seen` now keys it like `PLACED_TEXTURES`: both go through a new `placed_key`, which zeroes filler words 1 and 13 unless `VICTORY_PLACED_FILLER=1`, as `texture_at_table` already did. **4. Minor:** `try_write` keeps its guards in an array (`std::array::from_fn`), no `Vec`. `a_remembered_placed_texture_is_the_tables` now fills `PLACED_SEEN` directly with 4096 keys, so the 1024-slot table really gets crowded. `cargo clippy --workspace --all-targets --locked -- -D warnings`, with and without `--all-features`: clean on 100015c. We did not run the full `cargo test` here; CI will. For the `--release` A/B on `main`: each part keeps its own switch (`VICTORY_PLACED_SEEN`, `VICTORY_VIEWS_SHARDED`, `VICTORY_SHADOW_SHARDED`; `0` turns it off), so one build can compare them. The figures in the description come from our fork, not from MiniVI's `main`.
Author
Owner

@⁠Androtim on GitHub · 2026-12-02 21:33 UTC · original

Thanks for addressing all four review items cleanly in 100015c0!

  • Verified ReadMostly::read/try_read (&'static self, thread-local HELD holding the single RwLockReadGuard<'static, ()> with refcount + out-of-order drop + drop(last) outside RefCell borrow, !Send via Option<RwLockReadGuard>), LOOSE.read() on all read-only queries, placed_key filler masking on PLACED_SEEN, and array-based try_write.
  • Note on CI 46971537721: all listcpu stress/re-entrancy tests passed (758/759); the single failure (descriptor::host::tests::views_off_their_elements_get_a_copy_of_their_bytes) is an unrelated pre-existing parallel-test heap flake also seen on main. Triggered gh run rerun 46971537721 --failed.
  • Updated labels to triage: needs gpu test — ready for plain---release A/B on MiniVI main + --features diagnostics visual check once CI turns green!
**@⁠Androtim** on GitHub · 2026-12-02 21:33 UTC · [original](https://github.com/Androtim/MiniVI/pull/331#issuecomment-7359458569) Thanks for addressing all four review items cleanly in `100015c0`! - Verified `ReadMostly::read`/`try_read` (`&'static self`, thread-local `HELD` holding the single `RwLockReadGuard<'static, ()>` with refcount + out-of-order drop + `drop(last)` outside `RefCell` borrow, `!Send` via `Option<RwLockReadGuard>`), `LOOSE.read()` on all read-only queries, `placed_key` filler masking on `PLACED_SEEN`, and array-based `try_write`. - Note on CI `46971537721`: all `listcpu` stress/re-entrancy tests **passed** (`758/759`); the single failure (`descriptor::host::tests::views_off_their_elements_get_a_copy_of_their_bytes`) is an unrelated pre-existing parallel-test heap flake also seen on `main`. Triggered `gh run rerun 46971537721 --failed`. - Updated labels to `triage: needs gpu test` — ready for plain-`--release` A/B on MiniVI `main` + `--features diagnostics` visual check once CI turns green!
github-bot changed target branch from main to gh-pr/331/base 2026-12-02 22:37:46 +00:00
github manually merged commit 100015c059 into gh-pr/331/base 2026-12-02 22:37:48 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-12-02 22:33 UTC · original

Deep Static Audit Pass #4 (#282 comment 7359964895) signed off 100015c0 as VERIFIED CLEAN (Green Light) (Pass #1 #12 re-entrant SRWLOCK deadlock cleanly resolved via thread-local HELD + !Send ReadGuard, LOOSE.read(), placed_key filler masking, and verified append-only PLACED_TEXTURES), CI 46971537721 is GREEN, and zero conflict with merged #341/#343. Merging to main per Audit Pass #4 routing (#276 comment 7360813578) — v2026.12.02.12 will be tagged once main CI turns green!

**@⁠Androtim** on GitHub · 2026-12-02 22:33 UTC · [original](https://github.com/Androtim/MiniVI/pull/331#issuecomment-7360866105) Deep Static Audit Pass #4 (`#282` comment `7359964895`) signed off `100015c0` as **VERIFIED CLEAN (Green Light)** (Pass #1 `#12` re-entrant `SRWLOCK` deadlock cleanly resolved via thread-local `HELD` + `!Send` `ReadGuard`, `LOOSE.read()`, `placed_key` filler masking, and verified append-only `PLACED_TEXTURES`), CI `46971537721` is **GREEN**, and zero conflict with merged `#341`/`#343`. Merging to `main` per Audit Pass #4 routing (`#276` comment `7360813578`) — `v2026.12.02.12` will be tagged once `main` CI turns green!
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Androtim--MiniVI!331
No description provided.