Give parallel descriptor scans disjoint slot ranges #112

Manually merged
github merged 1 commit from github-bot/gh-112 into main 2026-11-27 02:43:07 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:35 UTC · original
TaynanGT:fix/disjoint-descriptor-scan-ranges → main · +95 −7 · 1 files · 1 commits · merged 2026-11-27 02:28 UTC

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.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:35 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/112) `TaynanGT:fix/disjoint-descriptor-scan-ranges` → `main` · +95 −7 · 1 files · 1 commits · merged 2026-11-27 02:28 UTC 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://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/37) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:11:09 +00:00
github manually merged commit 9a5f83348a into main 2026-11-27 02:43:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.