Repository navigation
Runtime: support the observed committed 64 KiB CPU XMem allocation - #6814
Stalkerino wants to merge 1 commit into
Conversation
|
Tested |
|
Native Windows check of
I don't have the retail executable, so I haven't run the startup path past this call. AI-assisted (Claude Code). No game files. |
|
Independent native Windows check of Environment: Windows 11 26100, MSVC 19.44.35213 (VS 2022 17.14), VS generator RelWithDebInfo.
AI-assisted. |
shayderrr
left a comment
There was a problem hiding this comment.
Summary
runtime/shims/xmem.cpp:XMemVirtualAlloc now permits the exact observed CPU request (attribute 0x181, null address, PAGE_READWRITE, 64 KiB reserve|commit) by routing it to the existing aligned allocation path; other nonzero attribute forms still fail with ERROR_NOT_SUPPORTED. xmem_test.cpp adds test_cpu_64k_commit verifying alignment, committed extent, read/write at both ends and negative controls; docs/runtime_imports.md documents the call.
Why merge
Advances the RT-5 boot path by backing the observed committed 64 KiB XMem CPU allocation the title requests at startup.
Verdict: Approve
Summary
Why mergeAdvances the RT-5 boot path by backing the observed committed 64 KiB XMem CPU allocation the title requests at startup. Verdict: Approve |
|
Tested
AI-assisted (Claude Code). |
Implements the CPU allocation reported in the coordination thread. A null-address
XMemVirtualAllocrequestingMEM_RESERVE | MEM_COMMIT, console 64 KiB pages, access word0x181andPAGE_READWRITEcurrently fails withERROR_NOT_SUPPORTED. This change routes that exact combination through the existing aligned 64 KiB allocation path. The meaning of the access word’s0x100bit is still unknown.The regression test requests 20 MiB, checks the base alignment, committed extent and protection with
VirtualQuery, writes and reads the first and last bytes, and releases the allocation. It also covers the boundary with reserve-only, explicit-address and graphics requests.Verification
1cc6e3c12, the added test fails at the new allocation. With this patch,xmem_testpasses all 114 checks.