cpu: test EXE startup through desktop shims #511
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!511
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/511/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?
@Jess-Doit on GitHub · 2026-11-22 08:38 UTC · original
Jess-Doit:test/runtime-shim-startup→main· +268 −0 · 5 files · 1 commits · merged 2026-11-22 09:07 UTCChange
Add
cpu_native_shim_startup. The same source-built EXE and companion DLL run under Windows andpe_mapwith the existing desktopxmem.dllandd3d12_xs.dllproviders. The test compares one process attach before entry, graphics memory allocation and observable release, the documented working-set failure, a tagged root signature with one preserved root-constant parameter, and exit status. The mapped run checks all six shim import requests and confirms host return.Refs #132 and #165.
Verification
Tested
aeb616aover14e5456on Windows 10 22H2 build 19045.6456, MSVC 19.44.35230, SDK 10.0.26100.0 and DXC 1.9.2602.17. All 16 selected CTests passed in Debug and all 16 passed in Release, including the new upstream two-provider comparison.Repeat with
--preset release. Both loaders emitted the same stage markers and returned 42. Withholdingxmem.dllidentifiedXMemAlloc. Withholdingd3d12_xs.dllidentifiedD3D12SerializeVersionedRootSignature. Both failures occurred before the EXE entered. Scratch variants that passed null to XMemFree or dropped the root parameter before serialization failed at the corresponding check under both loaders.Evidence and follow-up
The companion and EXE are MIT-licensed source-built fixtures. The test records the EXE, companion and both provider digests for each configuration. See the EXE startup through desktop runtime shims section in
docs/experiments.md.Checklist
AI-assisted.
@R0Y00 on GitHub · 2026-11-22 09:03 UTC · original
@Jess-Doit, I am taking the AOT/compute follow-up to your startup fixture. I will reuse your EXE entry and companion DLL, preserve the two-loader controls in this PR, and keep the follow-up in a separate PR. The added comparison will run one D3D12 dispatch, compare import arguments, bytes, release counts and process status across native, pe_map and AOT, and inject an allocation failure. If you already have a related branch or a Windows 10 test case, please link it here so we can use it. Thanks for the reproducible baseline.
@R0Y00 on GitHub · 2026-11-22 09:07 UTC · original · approved these changes
Reviewed
aeb616aand reproduced cpu_native_shim_startup on Windows with main1aafb0f. Native and mapped execution returned 42, all six provider imports were resolved, the mapped host returned and both missing-DLL controls failed before entry. This establishes the baseline for the separate compute/AOT follow-up.