In-place test: ask again for the decommit while the shared WARP device lets the heap go #151
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/fxceless--victory-fork!151
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@iTzAlvar on GitHub · 2026-11-24 21:54 UTC · original
iTzAlvar:fix/inplace-test-decommit-retry→main· +10 −2 · 1 files · 1 commits · openProblem
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
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.