runtime: export the default XMem allocation pair #872

Merged
R0Y00 merged 2 commits from upstream-pr/879 into main 2026-11-23 15:45:46 +00:00
R0Y00 commented 2026-11-23 15:24:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T15:24:50Z.


Refs #870 and #875.

Export the two default allocation names through the existing unhooked desktop allocator and retain the original four export ordinals. Extend the source-built named-import fixture to exercise heap and graphics allocation, alignment, zero-fill, release, and rejected attributes through both pairs.

Windows x64, MSVC 19.51, Release. cmake --build --preset release --target xmem_shim_check followed by ctest --preset release --no-tests=error --output-on-failure -R '^xmem_shim_(exports|allocation|default_allocation|query)$' passed 4/4.

Local integration checkpoint: the bounded mapping probe now resolves the default allocator import and stops at the next unresolved physical-page allocation import. Guest entry remains untested.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6562627836 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/879). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T15:24:50Z. --- Refs #870 and #875. Export the two default allocation names through the existing unhooked desktop allocator and retain the original four export ordinals. Extend the source-built named-import fixture to exercise heap and graphics allocation, alignment, zero-fill, release, and rejected attributes through both pairs. Windows x64, MSVC 19.51, Release. `cmake --build --preset release --target xmem_shim_check` followed by `ctest --preset release --no-tests=error --output-on-failure -R '^xmem_shim_(exports|allocation|default_allocation|query)$'` passed 4/4. Local integration checkpoint: the bounded mapping probe now resolves the default allocator import and stops at the next unresolved physical-page allocation import. Guest entry remains untested.
upstream-sync closed this pull request 2026-11-24 06:45:12 +00:00
R0Y00 commented 2026-11-24 06:49:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T15:34:14Z.


Review follow-up at fd38ead. MSVC generated ordinal imports for explicit DEF ordinals, including the existing callers. I kept the DLL ordinals and regenerated the consumer import library from the same export list using names. dumpbin /imports:xmem.dll now shows all six names in xmem_shim_check.exe and the old four by name in the startup companion DLL. Release passed the five focused XMem checks plus xmem_attribute_scan and cpu_native_shim_startup (7/7). Windows CI is rerunning. #875 remains open for the independent default-pair mapping comparison.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7105771242 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/879#issuecomment-7105771242). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T15:34:14Z. --- Review follow-up at `fd38ead`. MSVC generated ordinal imports for explicit DEF ordinals, including the existing callers. I kept the DLL ordinals and regenerated the consumer import library from the same export list using names. `dumpbin /imports:xmem.dll` now shows all six names in `xmem_shim_check.exe` and the old four by name in the startup companion DLL. Release passed the five focused XMem checks plus `xmem_attribute_scan` and `cpu_native_shim_startup` (7/7). Windows CI is rerunning. #875 remains open for the independent default-pair mapping comparison.
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
R0Y00/Xbox2Windows!872
No description provided.