XMem: a page mapping that already shows the same pages is not made again #1598
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1598"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by mizzied on 2026-11-28T22:11:02Z.
What it does.
XMemMapPhysicalPages(and with it the scatter form) and the page-mapping copy (map_alias) now leave the views alone when every page asked for is already shown at its address. The bytes are the same and the views' guards stay valid, so mapping them again only cost time. The counts go to the log (the first, then every 4,096th).VICTORY_REMAP_SAME=0maps them again as before.How it was tested. RTX 5070, Windows 11.
cargo test --workspacepasses apart fromrepository_passes_policy, which already fails onmain:lower.rsis over the 640 KiB file-size limit there (#1493 raises it). Clippy reports only the 16 findings already onmain, none on lines this PR changes.