Repository navigation
Conversation
Contributor
|
Independently reviewed
Source review confirmed direct-mapping precedence, independent-page isolation and preservation of unmapped-hole behavior. No actionable PR-introduced defects found. Native Windows and retail world loading were not tested. Advisory approval. |
3 tasks done
lixonik
force-pushed
the
fix/queue31-cpu-source-alias
branch
from
November 26, 2026 20:15
9c6a3dc to
5108a02
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: RT-QUEUE31-CPU-SOURCE-ALIAS
What and why
CopyPageMappingsBatchXlooked up pool pages only at the GPU address. When a GPU-only source page was backed through its paired CPU view, the batch treated it as a hole. It could return success while leaving the destination unmapped. This is on the streaming path used during story load.The batch and single-range copies now share the source lookup. It checks the direct mapping first and falls back to the paired CPU view for legacy paired ranges. An unmapped source with no CPU backing is still a hole.
Tested
xmem_testwith MSVC, using the productionxmem.cppand registry. With the new regression and the old implementation, the batch returned success but the source bytes were missing at the destination. The full suite passed after the patch (482 checks) and with write watching disabled (462 checks).LEONIDA_SLOT31_RUNS=0and=1. The full optional-mode run passed on retry (482 checks); earlier runs hit intermittent memory-accounting and concurrent-view assertions. Retail world load was not tested.python -I -B scripts/run_semantic_tests.py tests/semanticpassed 6,261 tests across 489 files.GPUs tested: n/a (synthetic XMem tests)
AI-assisted.
Checklist
mainand merges cleanly.