XMem: pin short records in tracked CPU mappings #2433
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2441"
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-25T16:56:13Z.
Refs #1914.
A consumer that records a short command argument can encounter a tracked XMem CPU mapping outside the graphics mirror. Version 2 of the existing in-process section lease API can pin a record within one committed physical page and verify that the same backing still covers it later. The pin keeps the original slot alive across unmapping, grant retirement and reuse of the virtual address. Version 1 retains its mirrored, potentially multi-page contract.
The CPU regression covers a 12-byte record ending at the page boundary, late writes to the original view, same-address replacement, an unleased prefix, crossing the page, holes, mismatched API versions and duplicate release.
Windows 11 build 26200, Release with MSVC x64. The local fixture and regressions passed 10/10 with zero skips, including RTX 4060 Laptop (32.0.16.1656) and WARP.