runtime: reserve XMem address space as mappable placeholders #945
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!945
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/945/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 18:13 UTC · original
R0Y00:codex/xmem-placeholder-reservations→main· +90 −4 · 5 files · 1 commits · merged 2026-11-23 18:27 UTCRefs #870 and #888. This applies the reserve-only profile and source-built validation approach proposed by @descent81 in #888 to the shared backing that landed in #934.
Reserve Windows placeholders without committing memory. Split a page from an owned reservation only when mapping needs it, and coalesce the range after the last view is removed. Preserve the page's contents across unmap/remap and leave caller-provided standalone placeholders supported.
The Windows fixture covers both reservation sizes, maps an interior page, checks the original value after remapping, releases the full range and recreates the same range at the same address. The verified profile covers only the two reserve-only shapes.
Windows x64, MSVC 19.51, 4/4 passed.
@legacy-code-archaeologist on GitHub · 2026-11-23 18:16 UTC · original
Independent run of
2e236d9on a second machine: Windows 11 Pro 26100, Intel Core i7-6820HQ, MSVC 19.52,devpreset. The head merges cleanly withmainat1c13def(git merge-tree).Result: 4/4 passed.
xmem_shim_mapped_pagesreportsAliased writes, scatter order, remap, rollback, and grant lifetime agree. The wider^xmem_selection passes 12/12, with no skips.I did not run the
releasepreset here.AI-assisted (Claude Code).
github-bot referenced this pull request2026-11-27 01:52:18 +00:00