Give each parallel descriptor scan exclusive ownership of its slots #106

Closed
opened 2026-11-27 01:33:09 +00:00 by TaynanGT · 0 comments
TaynanGT commented 2026-11-27 01:33:09 +00:00 (Migrated from github.com)
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:33:09Z.


With VICTORY_PORT_DESCRIPTORS=1, a marked run and a page due for fallback can cover the same descriptor. They both enter the parallel scan. Its comparison routines update shared copied records and require exclusive ownership of every slot in an assigned range. Scan construction and dispatch · Comparison contract

Synthetic regression

Feed the scan planner a marked run that overlaps a fallback page, plus other ranges so the work splits across jobs. Assert that each slot belongs to one job and that the overlapping slots still count toward the fallback check. Exercise the case alongside VICTORY_PORT_DESCRIPTORS_CHECK=all and VICTORY_PORT_DESCRIPTORS_EVERY=1, where every due page is checked.

Found during review of #37. Verified in the source at cc9ed86. The renderer port is off by default.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:6638092214 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/106). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T01:33:09Z. --- With `VICTORY_PORT_DESCRIPTORS=1`, a marked run and a page due for fallback can cover the same descriptor. They both enter the parallel scan. Its comparison routines update shared copied records and require exclusive ownership of every slot in an assigned range. [Scan construction and dispatch](https://github.com/TaynanGT/Vice-Tay/blob/cc9ed86c78ee44dae1392d0e101f7b3d2a91a9ec/crates/victory-gpu/src/descriptor.rs#L424-L492) · [Comparison contract](https://github.com/TaynanGT/Vice-Tay/blob/cc9ed86c78ee44dae1392d0e101f7b3d2a91a9ec/crates/victory-gpu/src/descriptor/host.rs#L5075-L5102) **Synthetic regression** Feed the scan planner a marked run that overlaps a fallback page, plus other ranges so the work splits across jobs. Assert that each slot belongs to one job and that the overlapping slots still count toward the fallback check. Exercise the case alongside `VICTORY_PORT_DESCRIPTORS_CHECK=all` and `VICTORY_PORT_DESCRIPTORS_EVERY=1`, where every due page is checked. Found during [review of #37](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4711638200). Verified in the source at `cc9ed86`. The renderer port is off by default.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay#106
No description provided.