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

Closed
opened 2026-11-27 02:11:02 +00:00 by github-bot · 0 comments
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:33 UTC · original

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.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:33 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/106) 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://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/37). Verified in the source at `cc9ed86`. The renderer port is off by default.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:11:02 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

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