gpu: the heap test no longer races another test sync #592
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/readmet3xt-lab--foxhound!592
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-592"
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?
@oxybes on GitHub · 2026-12-04 08:48 UTC · original
oxybes:pr/heap-test-flake→main· +33 −11 · 1 files · 1 commits · draftrecords_copied_as_bytes_are_made_at_the_next_syncfailed about once per full parallel run, and passed when run alone.SHADER_HEAPSis global, andsync_heapswalks every registered heap, consuming each heap's write-watch pages withwritten.take(...). Another test'ssync_heaps()- or the backgroundvictory-heap-syncthread started bybegin_sync_heaps- can take this test's page between the copy and theassert!(!host.made(5)), or take it and still be mirroring when the test's own sync andmadecheck return.The test now retries the same sequence on fresh slots (up to ten, 2 ms apart), the way the neighbouring
cleared_before_madealready does, and keeps the same two assertions: a cleared copy is not made before the sync, and it is made after it. No global lock, so the rest of the test binary stays parallel.cargo test -p victory-gpu --lib: 649 passed, twice in a row and six more times before that.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.