GPU: support >= 1 TiB alias heaps for section-backed in-place buffers (VICTORY_INPLACE_ALIAS=1) #1015

Open
HailLucifer666 wants to merge 1 commit from upstream-pr/1017 into main
HailLucifer666 commented 2026-11-25 16:21:41 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by HailLucifer666 on 2026-11-25T16:21:41Z.


Opt-in (VICTORY_INPLACE_ALIAS=1, off by default) support for opening OpenExistingHeapFromAddress1 on a >= 1 TiB alias view (View B) for contiguous section-backed memory (Cover::Run), leaving the title's < 1 TiB view (View A) free to unmap without ERROR_INVALID_PARAMETER (87).

Verification

  • cargo test -p victory-gpu inplace:: --locked -- --test-threads=1 -> 7 passed, 0 failed, including vacuity-controlled WARP test warp_alias_view_above_1tib_isolates_heap_lock_from_title_view (VirtualProtect(ViewB, PAGE_READONLY) fails with ERROR_INVALID_PARAMETER 87 while UnmapViewOfFile2(ViewA) succeeds).
  • /kee mutation probe: opening the heap on View A instead of View B fails warp_alias_view_above_1tib_isolates_heap_lock_from_title_view at View B must be locked by OpenExistingHeapFromAddress1; restored byte-identical.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6608780945 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1017). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-25T16:21:41Z. --- Opt-in (VICTORY_INPLACE_ALIAS=1, off by default) support for opening OpenExistingHeapFromAddress1 on a >= 1 TiB alias view (View B) for contiguous section-backed memory (Cover::Run), leaving the title's < 1 TiB view (View A) free to unmap without ERROR_INVALID_PARAMETER (87). ### Verification - cargo test -p victory-gpu inplace:: --locked -- --test-threads=1 -> **7 passed, 0 failed**, including vacuity-controlled WARP test warp_alias_view_above_1tib_isolates_heap_lock_from_title_view (VirtualProtect(ViewB, PAGE_READONLY) fails with ERROR_INVALID_PARAMETER 87 while UnmapViewOfFile2(ViewA) succeeds). - /kee mutation probe: opening the heap on View A instead of View B fails warp_alias_view_above_1tib_isolates_heap_lock_from_title_view at View B must be locked by OpenExistingHeapFromAddress1; restored byte-identical.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1017:upstream-pr/1017'
git switch 'upstream-pr/1017'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1017'
git switch 'upstream-pr/1017'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1017'
git switch 'upstream-pr/1017'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1017'
git switch 'main'
git merge --squash 'upstream-pr/1017'
git switch 'main'
git merge --ff-only 'upstream-pr/1017'
git switch 'main'
git merge 'upstream-pr/1017'
git push origin 'main'
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
fxceless/victory-fork!1015
No description provided.