Allow package child to pin external providers until exit #950
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!950
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/950/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?
@R0Y00 on GitHub · 2026-11-23 18:27 UTC · original
R0Y00:codex/pe-pin-external-providers→main· +56 −2 · 4 files · 2 commits · merged 2026-11-23 18:49 UTCRefs #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.@R0Y00 on GitHub · 2026-11-23 18:33 UTC · original
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.