hle(xmem): pool-back MEM_COMMIT calls inside reserved XMemVirtualAlloc ranges on macOS #510
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS#510
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Sheffy007 on GitHub · 2026-11-27 22:31 UTC · original
Summary
On macOS, one-step
XMemVirtualAlloc(NULL, size, MEM_RESERVE | MEM_COMMIT, ...)backs the allocation with aPoolviaxmem_physical::back_with_poolso the native GPU backend can resolve title addresses throughPoolTable(a017f770).However, when the title reserves virtual address space first (
XMemVirtualAlloc(NULL, size, MEM_RESERVE, ...)or aPAGES_64Kplaceholder) and commits granules or sub-ranges later viaXMemVirtualAlloc(at, size, MEM_COMMIT, ...)orVirtualAlloc(at, size, MEM_COMMIT, ...)(as ina_placeholder_reservation_commits_in_parts),xmem_posix.rs:161-172andhost_posix.rs:267-278call plainmem::commit(mach_vm_protect) on anonymous VM pages without creating pool backing.As a result, any GPU resource, descriptor heap buffer view, constant buffer, vertex/index buffer, or command placed in two-step committed
XMemVirtualAllocmemory is invisible toPoolTable, failing withtitle address ... is not in a mapped poolor leaving multi-page buffer views as the null view (a buffer view over title memory with a gap stays the null view).Refs #15, #258
@Sheffy007 on GitHub · 2026-11-27 22:31 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 22:31 UTC · original
Claimed by @Sheffy007. Open a draft pull request with
Refs #506in its description within 24 hours, or the claim expires.