Reserve Windows placeholders with PAGE_NOACCESS #2725

Merged
Yoruiopz merged 1 commit from upstream-pr/2725 into main 2026-11-30 14:12:01 +00:00
Yoruiopz commented 2026-11-29 16:38:27 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoruiopz on 2026-11-29T16:38:27Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552799252 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2725). Originally posted by [Yoruiopz](https://github.com/Yoruiopz) on 2026-11-29T16:38:27Z. --- ## 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)
Sign in to join this conversation.
No reviewers
No labels
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.

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