HLE: recycle freed XMem page numbers #1490
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1490
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1490/head"
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?
@Calvix2k on GitHub · 2026-11-24 18:23 UTC · original
Calvix2k:codex/xmem-page-reuse-036→main· +31 −4 · 1 files · 1 commits · closed without mergingSummary
Recycle page numbers removed by
XMemFreePhysicalPagesand prefer them in subsequentXMemAllocatePhysicalPagescalls. This prevents the title's packed 21-bit page-number field from eventually wrapping after repeated allocation/free churn, even when few pages remain live.Addresses VIC-BT-036 from the audit in #1249.
Verification
cargo test -p victory-hle --lib— 95 passedcargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings— passedThe full workspace test run on this Windows 10 machine still has 15 GPU shader tests that require an SM 6.6 hardware or WARP device; the targeted HLE suite passes.
@Marvisak on GitHub · 2026-11-25 00:41 UTC · original
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #1445. Same page-number reuse as #1445 without its limit check, so numbers the title cannot represent are still handed out at the limit.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed