gpu: the heap test no longer races another test sync #592
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from readmet3xt-lab/foxhound. Originally posted by oxybes on 2026-12-04T08:48:48Z.
records_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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.