gpu/pool: drop retired blocks after the pool lock #175
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ReTerryDavis--ReVIctory!175
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-174"
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?
@SovietBearz0r on GitHub · 2026-12-05 20:51 UTC · original
SovietBearz0r:pool-retire-outside-lock→main· +127 −19 · 1 files · 1 commits · openFrom the closed #32 review: "dropping retired pool allocations outside locks in
pool.rs". Currently evicted pool blocks drop their D3D12 resources while the pool lock is held.What
pool.rs:reclaimcollects retired blocks' memory into a returnedVec, still countingreleasedunder the lock;restedforwards it;take_ripewrites it to the caller's vector.room(),staging()andtexture()drop the vector after the guard is released, so resource destruction does not run under the pool lock.take()is now the tests' helper (staging usestake_ripedirectly); lock-discipline comments onroom/take_ripe/rested/reclaim.Verification
cargo test -p victory-gpu --lib: 718 passed, 0 failed, 21 ignored (2 new: retired blocks counted/dropped after the lock; a take retires spares through the caller); clippy-D warningsclean;cargo check -p victory; policy 442 files.pool::tests::pieces_never_overlap_and_rest_before_they_are_used_againflaked on the unmodified tree too (it reads process-global pool spares andcommit::low/pressed); unrelated pre-existing test fragility, worth a separate fix.@SovietBearz0r on GitHub · 2026-12-05 21:48 UTC · original
In-game pass done (RX 9070 XT, diag build): clean 93.6 s run, exit 0, 0 errors, no device removals, normal pacing (46.7/42.4/40.6 fps on the spots). No pool regression/hang observed. Log:
data\ingame-verify\logs\pool-retire.log.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.