feat(libkernel_sys): implement scePthreadSuspend, scePthreadSuspendAll and scePthreadSingle #21464
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21464"
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 frankea on 2026-11-16T06:51:04Z.
Stacked on #12130 and #12642 (this branch merges both heads): until they merge, this diff includes their commits. This PR's own changes are the commits
feat(libkernel_sys): implement scePthreadSuspend, scePthreadSuspendAll and scePthreadSingleandfix(libkernel_sys): return nothing from scePthreadSuspendAll and test a joined thread before reuse, plus five follow-up commits from review:fix(libkernel): clear the park word before a parked thread rereads its suspension,fix(libkernel): pin and request only started threads while suspending,fix(libkernel): give a Windows guest thread one host-suspend owner,fix(libkernel): keep the Linux park signal deliverable and lock-freeandtest(libkernel): skip the running-thread suspend tests on macOS. Those five change code that comes from #12130 and #12642 (the suspend protocol inThread.cpp,Exception.cpp,Signals.cppandTimedWait, and the test registrations); they apply to those PRs as well.What
Implements the sce forms of the libthr suspend calls in libkernel_sys, on top of
pthread_suspend_np(#12130) andpthread_suspend_all_np/pthread_single_np(#12642). Each sce form is the libthr call under its sce name, asscePthreadResume,scePthreadResumeAllandscePthreadMultialready are onmainfor the resume side; that pairing is the only assumption about the sce names.scePthreadSuspend(Pthread thread): callspthread_suspend_npand returns 0 once the target is suspended, as_pthread_suspend_npin FreeBSD 11.4 libthr (thr_suspend_np.c) does. The declaration inApi.hppgains thePthreadargument, matchingscePthreadResume(Pthread). Wherepthread_suspend_npreturns an error (EINVALfor a null thread,ESRCHfor a finished one,EDEADLKfor the caller), it throws instead of returning a value, because the sce error values of this function are unmeasured. The0x80020000 + errnorule ofscePthreadResumewas established for the resume side only (#9573).scePthreadSuspendAll(void): callspthread_suspend_all_npand returns nothing. The declaration inApi.hppchanges frominttovoid, matching its counterpartscePthreadResumeAllonmainand FreeBSD's_pthread_suspend_all_np(thr_suspend_np.c), which returnsvoidand cannot fail. Nothing in the repository settles the console's return type: no caller, wrapper or debt entry reads it.scePthreadSingle(void): returnsSceResult(pthread_single_np()), the same shape asscePthreadMulti._pthread_single_np(thr_single_np.c) calls_pthread_suspend_all_npand returns 0, so the error branch is never taken.A debt fragment (
docs/dev/debt/changes/feat-sce-pthread-suspend-wrappers.md) adds one entry: the pairing, thePthreadargument, the throwing error paths ofscePthreadSuspendand thevoidreturn ofscePthreadSuspendAllare unmeasured on a console. The suspend gaps already listed for the np functions apply unchanged. While the stack is unmerged,docs/dev/debt/libkernel_sys.mdin this diff shows twopthread_suspend_npentries:[pthread_suspend_np]from #12130 and[pthread_suspend_np, pthread_suspend_all_np and pthread_single_np]from #12642. Both come from the stacked PRs, not from this one; this PR's entry is only in its fragment.tools/progress.py --module libkernel_sysreads 193/820 onmainfb233c99c4, 196/820 with #12130 and #12642 merged, and 198/820 with this PR:scePthreadSuspendstill counts as pending because its error paths callNotImplemented_nid_no_patch.Overlap with #18112 (
feat(libs): mirror libkernel exports through libkernel_web, open): it adds forwarders for the currentmainstubs, written againstint scePthreadSuspend(void)andint scePthreadSuspendAll(void). This PR changes both declarations, so whichever of the two merges second has to update those forwarders or the build fails. Incore/libs/prx/libkernel_sys/AdditionalExports.cppthescePthreadSuspendforwarder (#18112 lines 3502-3503,int APS5_VABI scePthreadSuspend_nid_no_patch(void) { return scePthreadSuspend(); }) has to pass the thread argument and becomesint APS5_VABI scePthreadSuspend_nid_no_patch(Pthread thread) { return scePthreadSuspend(thread); }, with its declaration ininclude/AdditionalExports.hpp(line 727) changed toint APS5_VABI scePthreadSuspend_nid_no_patch(Pthread thread);. The libkernel_web forwarder incore/libs/prx/libkernel_web/Forwards.cpp(lines 3897-3898) becomesint APS5_VABI scePthreadSuspend_nid_disambig1_nid_postfix(Pthread thread) { return scePthreadSuspend_nid_no_patch(thread); }, declared ininclude/Forwards.hpp(line 995) asint APS5_VABI scePthreadSuspend_nid_disambig1_nid_postfix(Pthread thread);. ThescePthreadSuspendAllforwarders (AdditionalExports.cpplines 3506-3507,Forwards.cpplines 3901-3902) no longer match either, because they return the result of avoidcall; they take the shape #18112 already uses forscePthreadResumeAll:void APS5_VABI scePthreadSuspendAll_nid_no_patch(void) { scePthreadSuspendAll(); }andvoid APS5_VABI scePthreadSuspendAll_nid_disambig1_nid_postfix(void) { scePthreadSuspendAll_nid_no_patch(); }, with both declarations changed tovoid. ThescePthreadSingleforwarders (int (void)) still match. #18112'spthread_suspend_np_nid_no_patch(void)andint pthread_suspend_all_np_nid_no_patch(void)forwarders likewise no longer match thepthread_suspend_np(Pthread)of #12130 and thevoid pthread_suspend_all_np(void)of #12642; that conflict is between #18112 and those PRs and is unchanged by this one.Review fixes
parkedbefore it rereadssuspended, so a suspend issued right after a resume is not acknowledged by the previous park.startedonly after the guest state is published. Suspend-all tracks exited threads by registry key instead of by address. A park request that throws releases its target through the normal resume path.scePthreadCreatestoressuspendedonly for a thread created suspended, so it no longer clears a suspend-all mark.RefreshGuestRangesscans under its lock, so an older snapshot cannot replace a newer one; guest threads unblock the park signal (SIGUSR2) after restoring the creator's host mask, and adopted threads do the same; the suspend-safe marker is hidden while a guest signal handler runs, so a handler that takes a host lock cannot be parked inside it.if(NOT APPLE), as suspending a started thread throws there.Tested
guest_sce_pthread_suspend(about 10.7 s on the Windows box):scePthreadSuspendreturnsSCE_OKand stops a guest-code spinner and a thread looping onsceKernelUsleep(200), one at a time, while the other keeps running;scePthreadResumelets it continue (20 rounds).scePthreadSuspendof a joined thread throws; the check runs right after the join and before any other thread is created, so the joined handle cannot have been reused by a new thread.scePthreadSuspendof a null thread and of the calling thread throws, and a running spinner is not stopped by those calls.scePthreadSuspendAllstops both workers;scePthreadResumeAlllets them continue (20 rounds).scePthreadSinglereturnsSCE_OKand stops both workers;scePthreadMultilets them continue (20 rounds).scePthreadSuspendstays stopped throughscePthreadSuspendAlland runs again afterscePthreadResumeAll.scePthreadSuspendreturns (a guest-code spinner and asceKernelUsleep(200)loop).scePthreadSuspendon the same spinner at once stop it, and onescePthreadResumelets it continue (200 rounds).scePthreadSuspendand continues afterscePthreadResume. With the unblock inRunThreadremoved, the test times out at 30 s.bc0fb365e3(mainfb233c99c4with #1213056e24d1b1and #126424a30c0bf9merged):guest_sce_pthread_suspend,guest_pthread_suspend,guest_pthread_suspend_allandguest_pthread_create_suspendedpass, 4 of 4.guest_sce_pthread_suspendpassed 30 consecutive runs (ctest --repeat until-fail:30), and the four together passed 30 consecutive runs in parallel (-j4 --repeat until-fail:30). The Rosetta CPU lacks AVX2/BMI2, soCheckHostCpuincore/libs/prx/libkernel/System/src/HostCpu.cppwas bypassed locally for these runs and is not part of the change.guest_sleep_wakeandguest_libressl_confpass. The new park-word and two-requester cases are stress tests: with the old park-word order restored,guest_sce_pthread_suspendstill passed 10 of 10 runs, so they do not reproduce those races deterministically.BUILD_TESTING=ON) at2b0d8ffd7e:guest_pthread_create_suspended,guest_pthread_suspend,guest_pthread_suspend_all,guest_sce_pthread_suspend,guest_libressl_conf,guest_sleep_wakeandguest_sleep_wake_coarsepassed 5 of 5 runs (ctest -j1). Themaincontrol at3a62876b41passed its four of those tests 5 of 5.guest_pthread_create_suspended,guest_libressl_confandguest_sleep_wakepass, andGuestScePthreadSuspend.cpppasses an AppleClang-fsyntax-onlycheck.fa3fd60533,6894f5da84,d735065643), Linux only, in the same Linux container:ExceptionHandlerReturnFromSecondWaitRestoresFirstMarker: a handler moves the waiter out of mutex wait A into a function that checks the marker was dropped and blocks on a second held mutex B; a second exception restores A.scePthreadSuspendmust return while A's mutex is still held, and A must drop the marker after it acquires the mutex. With the previousTimedWait.cppit aborts in 3 of 3 runs.SuspendStopsThreadInJitArenaCode: a thread spinning in RWX memory mapped bysceKernelJitMapSharedMemoryinside the guest arena is suspended and resumed 20 times. With the arena check inParkOnSignalremoved it aborts in 3 of 3 runs.SuspendStopsThreadInModuleLoadedDuringSuspend: the worker now calls the late entry from the host libraryguest_pthread_suspend_late_hostand each round suspends only once the worker waits in host code. With theRefreshGuestRangesline fromf7a8087b5dremoved it aborts in 3 of 3 runs.c3322b8269), Linux only, in the same Linux container:SuspendStopsThreadInModuleLoadedDuringSuspendagain:LateHostRunEntrywaits for the late entry inpoll()and counts each EINTR; the test callsdlopenonly after that counter has gone up, that is afterRequestGuestThreadParkhas sent its firstParkSignal, which comes after the initialRefreshGuestRanges. The fixedBLOCK_WINDOWsleep is gone and no test hook is added to production code.RefreshGuestRangesretry line fromf7a8087b5dremoved,guest_sce_pthread_suspendfailed 10 of 10 runs ("scePthreadSuspend did not stop a thread running in a guest module loaded while the suspend waited"); with it restored it passed 10 of 10.suspend|guest_raise_exception|pthread_cancel|sleep_cancelpassed 3 of 3.c3322b8269; the change is in Linux-only test code.python3 tools/check_conventions.py --base origin/mainpasses.python3 tools/debt_fold.py --checkreports only a clash between two cube-face fragments that are not part of this PR.Windows box, third review round
These results are for
d735065643, the head beforec3322b8269. That commit passed all 3 runs on the box with no failures, but the new tests did not run there. Both new cases and the newguest_pthread_suspend_late_hosttarget sit inside Linux-only blocks, so Windows only rebuilds the changed TimedWait.cpp / Exception.cpp code under the existing tests.Setup:
C:\src\p21464d.bundleinto branchp21464d(d735065643).C:\src\wt-14217-mainwas detached at1f78603b84with clean status beforehand.C:\src\p21464c.cmd d735065643c d7350(same bytes as the local copy), CMAKE_CXX_FLAGS_RELEASE kept at-O3 -DNDEBUG, CPUs 0-13 only, launched as a one-shot task that was deleted right after starting.Per-run totals (
ctest -R "suspend|pthread|exception" -j4 --timeout 120):Suspend tests per run:
New tests:
ExceptionHandlerReturnFromSecondWaitRestoresFirstMarkerandSuspendStopsThreadInJitArenaCodeare called inside#ifdef __linux__inmain()ofGuestScePthreadSuspend.cpp, so the Windowsguest_sce_pthread_suspendbinary leaves them out.SuspendStopsThreadInModuleLoadedDuringSuspend) is in the same block and did not run either.guest_pthread_suspend_late_hostsits insideif(CMAKE_SYSTEM_NAME STREQUAL "Linux")incore/libs/CMakeLists.txt, so it is not built on Windows. No new ctest entry appeared, which is why the count stayed at 259.Restore:
C:\src\wt-14217-mainis back at1f78603b84, submodules updated,git status --shortis empty. Thebuilddir still holds the d7350 binaries.Logs on the box:
C:\src\pr-results\p21464-d7350.txt, plus.build.logand.ctest1.logto.ctest3.logunder the same name.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T06:59:53Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
74efa558f2:tools/check_conventions.pypassed;git diff --checkclean.guest_pthread_suspend_all_tests,guest_pthread_suspend_tests,guest_sce_pthread_suspend_testsbuilt cleanly.guest_pthread_suspend,guest_pthread_suspend_all,guest_sce_pthread_suspend):core/libs/prx/libkernel/Pthread/include/Pthread.hpp,core/libs/prx/libkernel/Pthread/src/Mutex.cpp,core/libs/prx/libkernel/Pthread/src/Thread.cpp,core/libs/prx/libkernel/System/src/Exception.cpp,core/libs/prx/libkernel/Time/Time.cpp,core/libs/prx/libkernel/Time/TimedWait.cpp,core/libs/prx/libkernel/Time/include/TimedWait.hpp,core/libs/prx/libkernel_sys/Export.Discovery.cpp,core/libs/prx/libkernel_sys/include/Api.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T07:28:24Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected changes blocks merging; console behavior remains unmeasured as documented.
What I ran
Reviewed head
74efa558f242409ce68ebbe10a83c44bec007fe7from the prepared diff and pinned repository reader. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The three added test files were read, but tests were not run. Windows, console, and title behavior were not verified. The description reports Linux x86-64 tests under Rosetta and convention/debt checks; those results were not independently reproduced.
files.jsonwas unavailable, so excluded-file details were not verified. The included manifest lists 15 changed files and marks each as included; all 15 full texts were read through the pinned reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T04:35:51Z.
Review: COMMENTED
Actionable comments posted: 12
85881c9d-d9e7-4a85-adff-812fc75030acReviewing files that changed from the base of the PR and between
b306ad7411ande2fc5fd1b0.core/libs/CMakeLists.txtcore/libs/prx/libkernel/Pthread/include/Pthread.hppcore/libs/prx/libkernel/Pthread/src/Mutex.cppcore/libs/prx/libkernel/Pthread/src/Thread.cppcore/libs/prx/libkernel/System/src/Exception.cppcore/libs/prx/libkernel/Time/Time.cppcore/libs/prx/libkernel/Time/TimedWait.cppcore/libs/prx/libkernel/Time/include/TimedWait.hppcore/libs/prx/libkernel_sys/Export.Discovery.cppcore/libs/prx/libkernel_sys/include/Api.hppcore/libs/tests/GuestPthreadSuspend.cppcore/libs/tests/GuestPthreadSuspendAll.cppcore/libs/tests/GuestScePthreadSuspend.cppdocs/dev/debt/changes/feat-sce-pthread-suspend-wrappers.mddocs/dev/debt/libkernel_sys.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T06:09:23Z.
Review: COMMENTED
Reviewed — no blocking findings
The prepared change adds the SCE suspend wrappers and updates the underlying thread suspension protocol; I found no verified blocking defect in the code inspected.
What I ran
Reviewed head
2b0d8ffd7e2d36ecad7bfa2a114eb0d3415a03c7. Read the prepared description, commit list, manifest and diff, then targeted source ranges throughrepo_read.py. No build or tests were run; test results in the description are author-reported.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
Not verified
Did not run tests or inspect every changed file in full. The prepared bundle lists 16 changed files, all marked included; I read the diff and targeted source ranges, not each full file. Did not verify console behavior, CI results, or the reported cross-platform runs.
To get this to a good state
Nothing is required. The forwarding conflict with #18112 is an optional integration follow-up.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T06:13:45Z.
Review: COMMENTED
Actionable comments posted: 1
6d0d348a-b8ca-4bfb-bf28-1bc52a98ab56Reviewing files that changed from the base of the PR and between
e2fc5fd1b0and2b0d8ffd7e.core/libs/CMakeLists.txtcore/libs/prx/libkernel/Pthread/include/Pthread.hppcore/libs/prx/libkernel/Pthread/src/Thread.cppcore/libs/prx/libkernel/System/src/Exception.cppcore/libs/prx/libkernel/System/src/Signals.cppcore/libs/prx/libkernel/Time/TimedWait.cppcore/libs/prx/libkernel/Time/include/TimedWait.hppcore/libs/tests/GuestScePthreadSuspend.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T07:01:59Z.
Review: COMMENTED
Actionable comments posted: 1
f700c2c2-e41d-4728-96ef-f076748d11bbReviewing files that changed from the base of the PR and between
2b0d8ffd7eandc0dc6265b1.core/libs/prx/libkernel/System/src/Exception.cppcore/libs/prx/libkernel/Time/TimedWait.cppcore/libs/prx/libkernel/Time/include/TimedWait.hppcore/libs/tests/GuestScePthreadSuspend.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T07:22:41Z.
Review: COMMENTED
Reviewed — no blocking findings
The change at
c0dc6265b1a95794ec78218678cb08373ab9d518implements the suspend wrappers and their supporting protocol; no verified blocking defect was found in the inspected code.What I ran
No tests or build commands were run. I read the prepared description, commit list, diff, manifest, and targeted source ranges through
repo_read.py. The reported Windows, Linux, and macOS runs are author supplied.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
I did not read every changed file listed in the manifest, including the complete test sources, all of
Thread.cpp, and all ofException.cppandSignals.cpp. I therefore cannot verify the full test coverage, all platform-specific paths, or the claimed test results. The author reports tests on Windows 11, Linux x86-64 under Rosetta, and macOS x86-64 under Rosetta; I did not run them. Console behavior and the sce API assumptions remain unmeasured as stated in the debt entry. SVG and other diff-excluded files were not inspected.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T05:25:13Z.
Review: COMMENTED
Actionable comments posted: 2
0706ff41-4421-43c9-9c9b-7f0eae20a704Reviewing files that changed from the base of the PR and between
c0dc6265b1andc14da7a353.core/libs/CMakeLists.txtcore/libs/prx/libkernel/Pthread/include/Pthread.hppcore/libs/prx/libkernel/Pthread/src/Mutex.cppcore/libs/prx/libkernel/Pthread/src/Thread.cppcore/libs/prx/libkernel/System/src/Exception.cppcore/libs/prx/libkernel/System/src/Signals.cppcore/libs/prx/libkernel/Time/TimedWait.cppcore/libs/prx/libkernel/Time/include/TimedWait.hppcore/libs/prx/libkernel_sys/Export.Discovery.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T05:47:34Z.
Review: COMMENTED
Reviewed — comments
The suspend changes are substantial, and I could not verify every changed file or run the reported tests, so a formal decision is not justified.
What I ran
c14da7a3538b68a3b13782d25152162b832f72ac.description.md,commits.md,manifest.json, and portions ofdiff.patch; the manifest lists 15 changed files, all marked included.Results
Findings
Blocking
None verified.
Non-blocking
Not verified
I did not read the complete contents of all 15 changed files, inspect excluded files, or run tests. Repository code was not read through
repo_read.py; the review interface did not expose that reader command. Behavior claims beyond the prepared diff and description are not verified.To get this to a good state
Nothing is required. Optional: complete a full changed-file review and run the reported test suite before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-29T07:32:05Z.
Review: COMMENTED
Actionable comments posted: 2
46bc2bc9-b767-41f0-a966-a19bd9c18e9dReviewing files that changed from the base of the PR and between
c14da7a353and4867ff7706.core/libs/CMakeLists.txtcore/libs/prx/libkernel/Pthread/src/Mutex.cppcore/libs/prx/libkernel/Pthread/src/Thread.cppcore/libs/prx/libkernel/System/src/Exception.cppcore/libs/prx/libkernel/Time/TimedWait.cppcore/libs/prx/libkernel/Time/include/TimedWait.hppcore/libs/tests/GuestPthreadSuspend.cppcore/libs/tests/GuestPthreadSuspendLateModule.cppcore/libs/tests/GuestScePthreadSuspend.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T07:33:18Z.
Review: COMMENTED
Reviewed — no blocking findings
The changed suspend implementation and its registered tests were reviewed at head
4867ff770606287d5e7b75d62cddb0ff1e5d1575; no verified blocking defect was found, but no checks were run independently.What I ran
No commands or tests were run. I read the prepared review bundle and selected changed code at the pinned head.
Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The changed files in
files.jsonunderreviewedwere not all read, so a complete approval is not justified. I readdescription.md,commits.md,manifest.json,diff.patch, and selected changed source ranges incore/libs/CMakeLists.txt,core/libs/prx/libkernel/Pthread/src/Thread.cpp,core/libs/prx/libkernel/System/src/Exception.cpp,core/libs/prx/libkernel/Time/TimedWait.cpp,core/libs/prx/libkernel_sys/Export.Discovery.cpp,core/libs/tests/GuestPthreadSuspend.cpp, andcore/libs/tests/GuestPthreadSuspendAll.cpp. Other changed files and uninspected ranges were not verified. Tests, builds, and runtime behavior were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T17:10:57Z.
Review: COMMENTED
Reviewed — comments
The suspend implementation and its reported tests received a partial source review at head
d735065643cfc5631b097125e7860e757078f382; substantial changed files were not read, so a formal approval or change request is not justified.What I ran
No tests or repository commands were run. I read the prepared description, commit list, diff, and manifest; the author’s test results in the description were not independently run.
Results
Findings
Blocking
None identified in the portions reviewed.
Non-blocking
None.
Not verified
The manifest lists 16 changed files, all marked included. I read
core/libs/CMakeLists.txt,core/libs/prx/libkernel/Pthread/include/Pthread.hpp,core/libs/prx/libkernel/Pthread/src/Mutex.cpp,core/libs/prx/libkernel/Pthread/src/Thread.cpp,core/libs/prx/libkernel/System/src/Exception.cpp, and portions of the test and debt changes indiff.patch. I did not read the complete changed files or remaining diff hunks, includingSignals.cpp,Time.cpp,TimedWait.cpp, the API/export changes, and the complete tests.files.jsonwas not read, so exclusions are not verified. No test commands were run.To get this to a good state
Complete the review of the remaining changed files and hunks before making a formal review decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T22:45:18Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
c3322b8269b82d4115797cd7f5e31e237f5ba115using the prepared review bundle and the pinned repository reader. I ran no commands or tests.Results
Read:
description.md,commits.md,manifest.json,diff.patch,README.md, and targeted ranges inThread.cpp,Exception.cpp,TimedWait.cpp,GuestArena.cpp, andExport.Discovery.cpp. All changed files were listed as included in the bundle; the complete added lines for every changed file were not read. No files were excluded by the bundle listing.Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
The full added-line review, build, and tests were not performed. The Linux, Windows, and macOS results in the PR description are author-reported, not runs performed in this review. Console behavior is also unverified.
To get this to a good state
Nothing is required. Optional: complete review of the remaining added lines and run the relevant checks on the reviewed head before relying on this review as a full verification.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T03:41:22Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
e2d9e960fa96cf540e2c15c13ad77ced706fc55b. Read the prepared description, commits, manifest, diff, and files list; usedrepo_read.pyfor targeted source reads. No tests or builds were run.Results
Negative control
Not run; no tests were run.
Findings
Blocking
None identified in the reviewed changes.
Non-blocking
scePthreadSuspendandscePthreadSuspendAllforwarders use the old signatures and return types, as described in the PR description.Sources
Not verified
No tests, builds, console runs, or title behavior were independently verified. The targeted reader commands returned source excerpts but could not append its read log because the run folder is read-only. The prepared diff covered all 18 files listed as reviewed in
files.json; no files were excluded.To get this to a good state
Nothing is required. Coordinate the forwarder signature updates with #18112 as an optional follow-up.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T16:38:44Z.
Review: COMMENTED
On Linux, CTest passed
guest_pthread_suspend,guest_pthread_suspend_allandguest_sce_pthread_suspendwith this revision integrated. This wider implementation also covers thepthread_suspend_npentry point from #12130, which changes the same fault-delivery area. The host behavior in this review is verified on Linux.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.