maporder: split the inflight-read counter by path #128
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!128
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-128"
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?
@TheRifai on GitHub · 2026-12-01 18:04 UTC · original
TheRifai:maporder-split→main· +32 −16 · 5 files · 2 commits · merged 2026-12-01 18:35 UTCWhat
The
reads while a remap was under waycounter inmaporder.rsdid not distinguish the work that raced with the remapper. It is now split by the path that resolved the address: copy source, copy destination, texture fill, title-memory write, descriptor write (docs/TASKS.md "Reads of pages while their remap is under way"). The stats line prints all five and their sum. No behaviour changes.The reference
No console counterpart: this is a rule-32 counter. The task asks for a queue split first; path-by-path is the step before that, since the call sites already know what they are doing.
Evidence
cargo check -p vkback --all-targetsand all 155 native tests pass; build succeeds.inflight by path: copy-src 0, copy-dst 0, fill 4509, title-write 0, descriptor 0. So the hits are the CPU read that prepares a texture fill's byte runs (fill.rs:336), not the renderer's descriptor/slot reads at Execute — the specific race the task was worried about does not appear in this run./tmp/opencode/capture/maporder-split/runs/20261201-190022.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29/31)unsafeor translator output changed (rules 2/9b/33/35/36/27)@vktory6 on GitHub · 2026-12-01 18:35 UTC · original
Merged, thanks! Splitting by path is a useful step before the queue split.
I pushed one commit (
711961d) before merging:TitleMemory::locate_spancaller: buffer views and indirect arguments throughspan(), landings, exact copies and write-backs. So it's named "other spans" now.fill, then each byte run again throughlocate_span. The byte runs now locate without counting.One thing to keep in mind when reading your result: the index slots read at
Executedon't go throughcheck()at all, and the comment says so now. Sodescriptor 0doesn't yet show that the own-queue slot-read race is absent. Instrumenting the slot reads is the next step of the task ("Reads of pages while their remap is under way").github-bot referenced this pull request2026-12-01 22:07:14 +00:00