Skip to content

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

Open
VlREX wants to merge 1 commit into
Marvisak:mainfrom
VlREX:fix/descriptor-address-publication
Open

VlREX wants to merge 1 commit into
Marvisak:mainfrom
VlREX:fix/descriptor-address-publication

Conversation

@VlREX

@VlREX VlREX commented Nov 24, 2026

Copy link
Copy Markdown

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).

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.

Descriptor address snapshots published before releasing writer: publication-order fix for descriptor updates — memory-ordering sensitive; Windows-only.

Marvisak commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

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

@VlREX
VlREX force-pushed the fix/descriptor-address-publication branch from 9c827c0 to a272c66 Compare November 25, 2026 18:26
github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants