Reserve Windows placeholders with PAGE_NOACCESS #2725

Manually merged
github merged 1 commit from github-bot/gh-2725 into main 2026-11-30 14:15:26 +00:00 AGit
Owner

@⁠Yoruiopz on GitHub · 2026-11-29 16:38 UTC · original
Yoruiopz:windows-placeholder-page-noaccess → main · +43 −11 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

Summary

Use PAGE_NOACCESS for explicit Windows placeholder reservations as well as translated console placeholder reservations. This follows the documented VirtualAlloc2 contract and keeps the title's requested GPU protection and the writable replacement path.

Verification

  • A native Windows probe used the title's 3,977 MiB allocation size and address bounds. PAGE_READWRITE returned error 87, while PAGE_NOACCESS reserved and released successfully in three comparisons.
  • Three XMem tests passed, including real reserve, split, writable replacement, and release. The offline locked release build passed.
  • The isolated build reserved the matching range and presented frames in two launches. The intermittent in-game error 8 remains under investigation.

Microsoft VirtualAlloc2 documentation

**@⁠Yoruiopz** on GitHub · 2026-11-29 16:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2725) `Yoruiopz:windows-placeholder-page-noaccess` → `main` · +43 −11 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC ## Summary Use `PAGE_NOACCESS` for explicit Windows placeholder reservations as well as translated console placeholder reservations. This follows the documented `VirtualAlloc2` contract and keeps the title's requested GPU protection and the writable replacement path. ## Verification - A native Windows probe used the title's 3,977 MiB allocation size and address bounds. `PAGE_READWRITE` returned error 87, while `PAGE_NOACCESS` reserved and released successfully in three comparisons. - Three XMem tests passed, including real reserve, split, writable replacement, and release. The offline locked release build passed. - The isolated build reserved the matching range and presented frames in two launches. The intermittent in-game error 8 remains under investigation. [Microsoft VirtualAlloc2 documentation](https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc2)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:43:36 +00:00
github manually merged commit 75ca1f9a80 into main 2026-11-30 14:15:26 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2725
No description provided.