Up-copy check: what is known of copies that are gone is let go #369
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!369
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-369"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@DiosET3RN0 on GitHub · 2026-11-26 19:44 UTC · original
DiosET3RN0:upcheck-prune-known→main· +35 −1 · 1 files · 1 commits · openRefs #227 (the second half of the "Texture store and upcopy check" bullet; #288 did the texture store half).
What
With
VICTORY_UPCOPY_CHECK,KNOWNinhost/upcheck.rskept an entry percopy ever declared or fetched and never let one go.
How
As the issue words it: keep only the ids still in
carded_copies(). The lookat rest takes its snapshot of the copies first and prunes
KNOWNwith it(
forget_gone), before anything in the look that can fail, so a host whosecompare pass cannot be built is pruned too.
Why it is safe:
Shadow::id: "A number no othercopy has had"), so nothing asks again about an id that is gone.
at_restruns with the submission lock held and nothing in the air, sonothing declares or fetches while the look runs.
KNOWNasks about copies of the same snapshot.One consequence, which the issue's wording accepts: a copy that is alive but
not on the card at the moment of a look loses what was declared of it.
Diagnostics only: nothing changes unless
VICTORY_UPCOPY_CHECKis set.Tests
New
what_is_known_of_a_copy_that_is_gone_is_let_go, on a map of its own (nodevice, and it does not touch the process's
KNOWN).cargo test -p victory-gpu --lib --locked host::upcheck: 2 passed, 10 ignored(the relay tests that want processes of their own; not run here).
cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: cleanapart from
main's ownwatch.rs:3626(fixed by #324).Other open PRs edit this file (#148, #180, #206, #338, #361); none touches
KNOWN. The new test sits just above the comment #361 rewrites: no overlap,but whichever lands second may want a trivial rebase.
Windows 11, Rust 1.98.1. No game run.
AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.