Forget view bits when the watch tests drop their views #425
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/425"
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 TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-28T17:22:35Z.
Fixes the remaining intermittent failures in #354 (
a_raw_copy_in_watched_memory_keeps_the_other_asked_rangesandraw_title_copy_keeps_write_watch_and_resends_equal_bytes).Cause
drop_viewsin the watch tests tells the watch about each view withtitle_memory_remappedbefore unmapping it. That call is for a view that has just appeared, so the view's blocks stay inVIEWS. OnceUnmapViewOfFilefrees the address, a later test'sVirtualAlloccan get it back.ask_restthen skips that range as view memory (refused_as_view), the journal doesn't cover it, andprepare_raw_copy_notereturnsNone("watched destination" / "the copy preserves the query").I found it by printing why
prepare_raw_copy_noterefused in the failing runs: every time it waskept=true, same mapping number,covers=false, with the destination's block set inVIEWS. Recording which test thread set that bit pointed ata_write_is_reported_at_every_checked_view, one of the 14 users oftwo_views/drop_views.Change
drop_viewsnow callstitle_memory_unmapping, which forgets the view bits, as the other tests do before a view goes ("the address may be another test's the moment it is free").Tested
Native Windows, NVIDIA card,
cargo test -p victory-gpu --libbuilt once and the test binary run 40 times in a row, parallel:raw_title_copy_keeps_write_watch_and_resends_equal_bytesa_raw_copy_in_watched_memory_keeps_the_other_asked_rangesmain(fe7c6e5)cargo clippy -p victory-gpu --all-targets --locked -- -D warningsis clean.This doesn't touch #387 (the fresh title buffer holding 0xEE). I saw that one once in about 70 runs; the zeroing probe from that thread was clean on Windows here (0 of 200, also with the released buffer used by a GPU copy first), so it's something else.
AI-assisted: yes
🤖 Generated with Claude Code
Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-28T18:33:54Z.
Closing as a duplicate of #393, which has the same fix in
drop_viewsand was opened first. I left my numbers there.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:11:40Z.
Thanks for consolidating this with #393 and preserving the test results there. Keeping one implementation of the drop_views fix avoids duplicate changes.
Pull request closed