Clear stale loose windows when a cell fixture takes its range #346
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/TaynanGT--Vice-Tay!346
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-346"
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?
@hamdanpor-ctrl on GitHub · 2026-11-27 18:50 UTC · original
hamdanpor-ctrl:fix/cell-fixture-clears-stale-windows→main· +26 −27 · 1 files · 1 commits · merged 2026-11-27 18:57 UTCFixes #341.
CellFixturereserves fresh address space withVirtualAlloc, which can hand back a range another test used and freed. A loose window or exact view that test left inLOOSEorEXACTthen answers the fixture's first lookup:loose_allocation_failure_leaves_window_open_to_retryfound a window although its allocator always fails.The fixture now takes every entry overlapping its range out of both tables when it is made, as well as when it is dropped (the drop also covers entries that start before the first cell but reach into it). Tests only.
cargo test -p victory-gpu --locked, parallelloose_allocation_failure_leaves_window_open_to_retryfailedmainat151b7db104c3d3The failure was rare, so 0 of 40 is limited evidence; I have not found which test leaves the entry. Clippy with and without
--all-featuresis clean, andshadow::loose_allocation_tests::passes with--all-features --test-threads=1.In the 40 runs two other tests failed once each, both outside this fixture and both already holding
one_asking_test():host::refresh_tests::raw_title_copy_keeps_write_watch_and_resends_equal_bytes(host.rs:12535, unwrap onNone) andwatch::tests::a_raw_copy_in_watched_memory_keeps_the_other_asked_ranges(watch.rs:4559, "watched destination"). I'll look at those separately.RTX 3050 Laptop GPU 4 GB (driver 617.42), i7-12700H, 16 GB, Windows 11 Pro, Rust 1.98.1.
AI-assisted (Claude Code).
🤖 Generated with Claude Code