GPU: publish descriptor address snapshots before releasing writer lock #1852

Open
github-bot wants to merge 1 commit from github-bot/gh-1852 into main AGit
Owner

@⁠VlREX on GitHub · 2026-11-24 23:29 UTC · original
VlREX:fix/descriptor-address-publication → main · +78 −5 · 1 files · 1 commits · open

Fix a CPU-side race between lazy descriptor address table initialization and concurrent descriptor writes. Hold the writer mutex until OnceLock publication completes. Preserve the lock-free initialized fast path. Two CPU-only regression tests included. Independent interleaving model: 2 stale outcomes before, 0 after. Native Rust and GPU tests pending. This is not a complete fix for issue #1808. AI-assisted (ChatGPT).

**@⁠VlREX** on GitHub · 2026-11-24 23:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/1852) `VlREX:fix/descriptor-address-publication` → `main` · +78 −5 · 1 files · 1 commits · open Fix a CPU-side race between lazy descriptor address table initialization and concurrent descriptor writes. Hold the writer mutex until OnceLock publication completes. Preserve the lock-free initialized fast path. Two CPU-only regression tests included. Independent interleaving model: 2 stale outcomes before, 0 after. Native Rust and GPU tests pending. This is not a complete fix for issue #1808. AI-assisted (ChatGPT).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:46:36 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 02:17 UTC · original · edited 2026-11-25 22:23 UTC

Automated triage for the maintainers.

Needs rebase. This PR no longer merges cleanly into main: main has moved since the last triage, and the branch now conflicts in crates/victory-gpu/src/descriptor/host.rs. It will be reviewed again once it is rebased onto current main.

Previous verdict for this head: merge candidate.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 02:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/1852#issuecomment-7150536471) · edited 2026-11-25 22:23 UTC <!-- victory-triage v1 head=a272c660347b74dc72d79732621837199b0a1ae4 verdict=needs-rebase at=2026-11-25T22:26:00Z --> Automated triage for the maintainers. **Needs rebase.** This PR no longer merges cleanly into `main`: `main` has moved since the last triage, and the branch now conflicts in `crates/victory-gpu/src/descriptor/host.rs`. It will be reviewed again once it is rebased onto current `main`. Previous verdict for this head: merge candidate. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1852/head:github-bot/gh-1852'
git switch 'github-bot/gh-1852'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1852'
git switch 'github-bot/gh-1852'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1852'
git switch 'github-bot/gh-1852'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1852'
git switch 'main'
git merge --squash 'github-bot/gh-1852'
git switch 'main'
git merge --ff-only 'github-bot/gh-1852'
git switch 'main'
git merge 'github-bot/gh-1852'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!1852
No description provided.