Tidy-ups of #227: replay event, timeline after end, VICTORY_WATCH, validator status #319

Open
github-bot wants to merge 1 commit from github-bot/gh-319 into main AGit
Owner

@⁠illuminatedfellow on GitHub · 2026-11-26 16:20 UTC · original
illuminatedfellow:fix/227-tidy → main · +28 −3 · 4 files · 1 commits · open

Part of #227: the four items no open PR takes yet (profile thread handles are #242, the shader census #246, the texture store #288).

  • Replay event leak (replay/gpu.rs): Worker closes its fence event when dropped, as Rig in inplace.rs does. One event leaked per 256 MiB upload batch in diagnostics builds.
  • Timeline writes after end() (timeline/record.rs): put_of and stack return early when recording is off, so waits or spans that straddle end() no longer write into the next recording's slots.
  • VICTORY_WATCH overflow (apps/victory/src/run.rs): rva.checked_add(4).is_some_and(|end| end <= size), as VICTORY_CRASH_SAVE already does.
  • Validator (emit/validator.rs): a failed GetStatus returns an error instead of counting as validated, and an error blob with a null pointer reads as empty instead of from_raw_parts(null, n).

Left alone: host/upcheck.rs's KNOWN (#180 and #281 change that file) and the optional known.rs item.

Checked: victory-shader builds and its tests pass on Linux (209 passed); the other three files are Windows-only and are built by CI here. All four paths are diagnostics or offline code, off the default runtime path. main's CI is red for unrelated reasons (#280).

(Written with Claude Opus 5.5.)

**@⁠illuminatedfellow** on GitHub · 2026-11-26 16:20 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/319) `illuminatedfellow:fix/227-tidy` → `main` · +28 −3 · 4 files · 1 commits · open Part of #227: the four items no open PR takes yet (profile thread handles are #242, the shader census #246, the texture store #288). - **Replay event leak** (`replay/gpu.rs`): `Worker` closes its fence event when dropped, as `Rig` in `inplace.rs` does. One event leaked per 256 MiB upload batch in diagnostics builds. - **Timeline writes after `end()`** (`timeline/record.rs`): `put_of` and `stack` return early when recording is off, so waits or spans that straddle `end()` no longer write into the next recording's slots. - **`VICTORY_WATCH` overflow** (`apps/victory/src/run.rs`): `rva.checked_add(4).is_some_and(|end| end <= size)`, as `VICTORY_CRASH_SAVE` already does. - **Validator** (`emit/validator.rs`): a failed `GetStatus` returns an error instead of counting as validated, and an error blob with a null pointer reads as empty instead of `from_raw_parts(null, n)`. Left alone: `host/upcheck.rs`'s `KNOWN` (#180 and #281 change that file) and the optional `known.rs` item. Checked: `victory-shader` builds and its tests pass on Linux (209 passed); the other three files are Windows-only and are built by CI here. All four paths are diagnostics or offline code, off the default runtime path. `main`'s CI is red for unrelated reasons (#280). (Written with Claude Opus 5.5.)
Four of the items #227 lists that no open PR takes (profile threads are
#242, the census #246, the texture store #288):

- Replay: a Worker closes its fence event when dropped (one leaked per
  256 MiB upload batch in diagnostics builds), as Rig does.
- Timeline: put_of and stack write nothing once recording has ended, so
  events that straddle end() no longer land in the next recording.
- VICTORY_WATCH: rva + 4 is checked, as VICTORY_CRASH_SAVE's ranges are.
- Validator: a failed GetStatus is an error, not a pass, and an error blob
  with a null pointer reads as empty instead of building a slice from null.

Left alone: upcheck.rs's KNOWN (#180 and #281 change that file) and the
optional known.rs item.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:22:30 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/319/head:github-bot/gh-319'
git switch 'github-bot/gh-319'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-319'
git switch 'github-bot/gh-319'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-319'
git switch 'github-bot/gh-319'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-319'
git switch 'main'
git merge --squash 'github-bot/gh-319'
git switch 'main'
git merge --ff-only 'github-bot/gh-319'
git switch 'main'
git merge 'github-bot/gh-319'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.