runtime: reserve XMem address space as mappable placeholders #938
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/945"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:13:22Z.
Refs #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.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-23T18:16:38Z.
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).