Copy counters: the bank size follows the counter enum #3920
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3920"
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 Marvisak/VIctory. Originally posted by 101Leafy on 2026-12-01T01:23:59Z.
COUNTERSincopystat.rsis a hand-kept 61, andChas exactly 61 variants. The next counter added without raising the number indexes pastCOUNTand panics the thread that counts it.The size is now
C::MirrorWaitUs as usize + 1, so a new counter always gets its slot as long as it goes before the end or the line follows the new last variant. A comment says so.cargo check -p victory-gpuis clean.Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-12-01T14:04:30Z.
I compiled the counter enum, COUNT bank, and add function from
3d2298c4as a standalone regression. On the unmodified parent and PR all 61 counters kept their own values, including 800 concurrent increments to the last slot. Inserting one test counter immediately before MirrorWaitUs left the parent bank at 61 for 62 variants and failed at the final slot; the PR expanded to 62 and retained the expected value 862. This exercises the documented last-variant convention.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.