fix(fiber): report the stack used by the executing fiber #5348
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5348"
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 boykopovar/AnyPS5. Originally posted by MathiasDevelopes on 2026-10-13T17:38:16Z.
What
sceFiberGetInfonow reports the requested-size window of the stack the fiber executes on. It previously reported the unused caller buffer, so ChakraCore's garbage-collector stack scan could cross unmapped memory and crash Planet Coaster (PPSA01736 v01.017).The requested context size is preserved. The extra host-call margin remains outside the reported range. A regression test scans the reported active stack while running, switching and migrating fibers; the host-stack substitution is documented in technical debt.
Overlap check: #4770 adds frame-chain tests elsewhere in
Fiber.cppand changes compiler options. It does not changesceFiberGetInfoor the lines changed here.Tested
BUILD_TESTING=ON.main61b8742b6: builtfiber_tests;ctest --test-dir build -R '^fiber$' --output-on-failurepassed (0.05 s). Subsequently rebased onto8cf6a0bc3; intervening upstream changes affect only the README and demo page. Conventions and whitespace checks passed after the rebase.0xc000001d,eboot.exe+0x2bf288). Title status: Game bring-up #5342. Full gameplay and Linux were not tested.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-13T17:38:22Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.