runtime: share physical page backing across XMem views #934
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!934
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/934/head"
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?
@R0Y00 on GitHub · 2026-11-23 17:48 UTC · original
R0Y00:codex/xmem-shared-physical-pages→main· +312 −38 · 9 files · 1 commits · merged 2026-11-23 18:03 UTCRefs #870, #892 and #902.
Give live physical-page grants shared Windows section backing. Contiguous and scatter operations map those sections into caller-owned page-sized placeholders. Unmapping preserves the reservation and the page contents. Existing grants keep their ownership rules, and release refuses any grant with a live view.
The source-built test observes shared data between addresses, scatter ordering, remap persistence, bad page numbers, release with a live view and rollback after a later destination fails. This desktop profile requires Windows placeholders from the caller.
Windows x64, MSVC 19.51, Release:
4/4 passed. The strict package preflight resolved two additional imports, with execution still blocked by unresolved external providers.
@R0Y00 on GitHub · 2026-11-23 17:53 UTC · original
I tested
7716a09together with the #888 reservation draft on Windows x64 Release. Five focused CTests passed. For both 16 GiB and 24 GiB reservations, the combined control split 64 KiB prefixes, mapped the same live grant with contiguous and scatter calls, observed a write through the other address, checked that release refused an active view, then unmounted and remapped to verify persistence. After the final unmap, release and coalescing both succeeded, and remapping the released identifier was refused. This uses the real XMem exports.