watch: a hole noted absent in a race with its unmapping is known as a placeholder at the next asking #3603
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3603
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3603"
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?
@ACSchafer on GitHub · 2026-11-30 01:36 UTC · original
ACSchafer:pr/watch-hole-placeholder→main· +101 −1 · 1 files · 1 commits · closed without mergingWhat it changes
A block whose view went between
protect's two questions (committed? a placeholder?) was noted absent and not held. Nothing told of it again, so every asking of its range asked Windows about it and the bits never answered for it. No write was lost, but it cost a question to Windows per asking, andno_mapping_is_lost_between_askersfailed its last check (published(at, end)) on some runs.guard()now takes such a hole for a placeholder when Windows says it is one and holds it (held, andPUBLISHEDwhenlight()). Blocks the runtime told of memory in (title_memory_allocated) are the exception: they stay asked about, as before. A new set,Guards::told, remembers them until a mapping, a free, or a kernel write there tells of the block.The placeholder question is asked with the guards' lock not held, like the others in
guard(), soVICTORY_KEEP_GUARD_LOCKbehaves as before.How it was tested
no_mapping_is_lost_between_askersrun 2,400 times, 4 at a time, onupstream/main@41adb551: 36 failed (1.5 %), eachassertion failed: super::published(at, end)a_hole_noted_absent_in_a_race_is_known_at_the_next_askingmakes the state the race leaves and checks the next asking; it fails without the changecargo testpassed for the crates it touches: yes.cargo test -p victory-gpu --lib watch::(66 passed).cargo clippy -p victory-gpu --all-targets, with and without--all-features, adds no warnings.Checked for overlap
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-30 01:36 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
@Tan7rex on GitHub · 2026-12-01 14:37 UTC · original
Tested on Windows 11 Pro (build 26100), RTX 4090, with this PR's change applied onto current
main(5fabb46e). The branch is 550 commits behind and conflicts inguard():maindroppedVICTORY_KEEP_GUARD_LOCKin8bd49cdc, so I resolved it asif !unsure.is_empty() {with the PR's comment andlet mut placeholderskept. Release test binary forvictory-gpu --lib.no_mapping_is_lost_between_askers, failures:main5fabb46emain+ this PRwatch::filter, 300 runsOn this machine the failure is too rare (1 in 960 runs on
main) to show the fix working. The new testa_hole_noted_absent_in_a_race_is_known_at_the_next_askingpasses.Possible regression, small numbers:
watch::tests::a_late_fault_leaves_the_guard_taken_sincefailed 5 of 600watch::runs with the PR (4 then 1, in two batches of 300) and 0 of 600 onmain. In 60 whole-lib runs it also failed once with the PR, against 0 onmain.watch::many_askers_tests::no_write_is_lost_when_faults_take_no_lockfailed once in 300 with the PR, against 0 onmain. Worth a look, sinceguard()now holds placeholders it used to leave absent.Not tested: the game.
@Tan7rex on GitHub · 2026-12-01 15:14 UTC · original
A correction to my earlier comment:
a_late_fault_leaves_the_guard_taken_sincealso fails onmain. In 60 more whole-library runs it failed once onmain5fabb46e(and 2 times with #3902, which doesn't touchwatch.rs), and #4705 is open for exactly this test. So the 5 of 600 I saw with this PR (against 0 of 600 onmain) is weaker evidence of a regression than I made it sound. It may only be the existing flake.@trustno1-coder on GitHub · 2026-12-01 18:50 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed