In-place test: ask again for the decommit while the shared WARP device lets the heap go #151
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/151"
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 fxceless/victory-fork. Originally posted by iTzAlvar on 2026-11-24T21:54:27Z.
Problem
inplace::tests::warp_a_title_buffer_in_place_shows_its_bytes_at_its_offsetfails about one run in six ofcargo test -p victory-gpu --lib:VirtualFree(MEM_DECOMMIT)of the pages under a heap already dropped returns 0 with error 87 (ERROR_INVALID_PARAMETER). Run alone, the test always passes.Cause
The WARP device is one per process, shared with the other WARP tests running at the same time. While the device is busy, the runtime lets the heap opened with
OpenExistingHeapFromAddress1go a moment later, and until then Windows holds the pages and refuses the decommit. Dropping the test's own queue and list first does not help, so it is not the test's own work that holds them.Fix
The test asks again every millisecond for up to five seconds before failing. Where it used to fail, one retry (about 2 ms) was enough. The code under test is unchanged.
Testing
cargo test -p victory-gpu --lib, all passing (before: about 1 in 6 failed).cargo clippy -p victory-gpu --tests: no warnings.Note: if the runtime one day hooks the title's own
VirtualFreewithVICTORY_INPLACE=2(seetitle_memory_freeing), the same delay could show up there.🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T21:54:43Z.
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.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.