watch: a hole noted absent in a race with its unmapping is known as a placeholder at the next asking #3603
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ACSchafer on 2026-11-30T01:36:35Z.
What 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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-30T01:36:48Z.
Review: COMMENTED
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tan7rex on 2026-12-01T14:37:09Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tan7rex on 2026-12-01T15:14:15Z.
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 #4704 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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:50:32Z.
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