Give parallel descriptor scans disjoint slot ranges #112

Merged
TaynanGT merged 1 commit from upstream-pr/112 into main 2026-11-27 02:28:06 +00:00
TaynanGT commented 2026-11-27 01:35:01 +00:00 (Migrated from github.com)

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


Fixes #106.

The renderer port can send the same descriptor slot to two scan workers when a marked run overlaps a write-watch fallback page. Both workers can update the same copy of the record, even though the comparison routines require exclusive ownership of each slot. Original review

Keep the marked runs intact and check only complete unmarked slots on each fallback page. This keeps a marked scan independent of a failed read elsewhere on its fallback page. The fallback still reports changes in slots that had no mark.

The two regression tests cover an overlapping run, a gap between marks, multiple fallback pages, and a marked record that straddles a page boundary. Both passed in the default and diagnostics suites, together with Clippy. Windows CI

The fallback's page counter still reports the pages selected by write watch. The broader heap-sync log counts each scanned fallback fragment when a marked run divides a page.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5519646443 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/112). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T01:35:01Z. --- Fixes #106. The renderer port can send the same descriptor slot to two scan workers when a marked run overlaps a write-watch fallback page. Both workers can update the same copy of the record, even though the comparison routines require exclusive ownership of each slot. [Original review](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4711638200) Keep the marked runs intact and check only complete unmarked slots on each fallback page. This keeps a marked scan independent of a failed read elsewhere on its fallback page. The fallback still reports changes in slots that had no mark. The two regression tests cover an overlapping run, a gap between marks, multiple fallback pages, and a marked record that straddles a page boundary. Both passed in the default and diagnostics suites, together with Clippy. [Windows CI](https://github.com/TaynanGT/Vice-Tay/actions/runs/45923385053) The fallback's page counter still reports the pages selected by write watch. The broader heap-sync log counts each scanned fallback fragment when a marked run divides a page.
Sign in to join this conversation.
No reviewers
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!112
No description provided.