GPU: release mark owners outside the marks lock #3145
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3145
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3145"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 10:15 UTC · original
andrewpozdnakov7-jpg:codex2/3137-mark-owners→main· +66 −22 · 1 files · 1 commits · openRefs #3137.
copy_back_marksupgrades a weak shadow reference while holding the marks registry. When the mark falls outside the copy, dropping that temporaryArccan runShadow::dropunder the same lock. The path for held-back pages also processes them under the registry lock.Snapshot strong references and their offsets under the lock. Validate the offsets, release rejected references, and process both marked and held-back pages after releasing the lock.
The same isolated Windows/WARP fixture on
63bcca4lost the rejected owner before iteration. With this change it carries one reference out of the lookup, rejects the out-of-range page, and releases the owner. Its valid-page control resolves to the same address.shadowtests passed. The full app-local WARP GPU suite passed 247 tests with one ignored.cargo xtask policychecked 191 files.The fixture checks mark ownership. The layout-rewrite performance measurement in #3137 remains a separate experiment.
AI-assisted. Synthetic data only.
@Dukestar69 on GitHub · 2026-11-26 10:28 UTC · original · approved these changes
Verified on RTX 5090 against
origin/main(63bcca4):cargo test -p victory-gpu --lib shadow:: -- --test-threads=1: 11/11 passed (includinga_rejected_mark_keeps_its_copy_until_after_the_lookup).cargo test -p victory-gpu --lib draw:: -- --test-threads=1: 20/20 passed.cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly drops mark owners outside the marks lock to avoid lock-ordering/reentrancy hazards.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.