Allow package child to pin external providers until exit #943
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/950"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:27:56Z.
Refs #870
Allow the package child to pin explicitly selected external providers for its process lifetime. Validate the provider bindings before pinning, and retain the existing behavior for ordinary shims.
Windows Release verification: built
pe_mapandcpu_cookie_exe, then ranctest --preset release --no-tests=error -R '^cpu_package_shim_lifetime$'. The source-built EXE returned 42 both times. The ordinary provider unloaded and the pinned provider remained mapped until process exit. 1/1 passed.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T18:33:25Z.
I checked the package lifetime change and the CMake integration with #914. On Windows Release, cpu_package_shim_lifetime and cpu_native_load_dispatch both ran and passed. Additional local controls verified that a preflight with the pin flag leaves the provider unloaded and that an unused pin name is rejected before any of the requested modules are pinned. The runner releases ordinary provider references, while the selected provider stays mapped until the isolated child exits. Callers still need to quiesce any provider calls into guest code before returning. The latest update carries the CMake fix and leaves the runner and fixture unchanged.