feat(libSceNKWebKit): implement PAL::KillRing::yank #22449
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/22449"
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 RiverWhy on 2026-11-17T16:41:01Z.
What
Implements
PAL::KillRing::yank, which throws onmaintoday. The other fourKillRingexports (append,prepend,startNewSequence,setToYankedState) are already answered onmainas empty exports by #23753, so this PR keeps those and only addsyank.The PlayStation port builds the non-Mac KillRing.cpp (PlatformPlayStation.cmake), and the PS5 11.x source has the same file. In that file, four of the methods do nothing (as #23753 has them on
main), andyankreturns a nullString, which this PR does:yankreturns itsStringthrough the hidden result pointer, as a type with a non-trivial destructor is returned.this, so a null object is not refused, as in the source.Debt: a fragment,
docs/dev/debt/changes/feat-nkwebkit-pal-kill-ring.md, adds the entry under Functional and removes theyankinventory row.Overlap:
pr_overlap.pyfinds no open PR with these exports.libSceNKWebKit.hpp, which is a line conflict only.Tested
Linux Mint 22.3:
nkwebkit_palkillringtest:yankwrites a nullStringinto a result slot filled with0xa5.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
yankoperation. It now returns an empty string.Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-17T16:45:12Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
3e6b683d3d:tools/check_conventions.pypassed.nkwebkit_palkillring_testsbuilt cleanly.nkwebkit_palkillring):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/PalKillRing.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T17:06:08Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional. The reviewed head is
3e6b683d3d, and the change implements the fivePAL::KillRingexports as no-op stubs plus a nullStringreturn foryank.What I ran
3e6b683d3d, base main.Results
Stringlayout used by the headerimplis the first member, as the test expectsPalKillRing.cppnkwebkit_palkillringrunsFindings
Blocking
None.
Non-blocking
core/libs/prx/libSceNKWebKit/src/PalKillRing.cpp:26repeats the "Derived from" line already atPalKillRing.cpp:1. The licence notice is allowed by the conventions, so the second copy can go.Not verified
src/PalKillRing.cppandtests/PalKillRing.cppare compiled and registered. The diff does not touch any build file, and the reader search could not find the registration pattern.Export.cppandInventoryExports.hppare in the reviewed list, but their full text is too large for the review folder. I checked them only through the removed hunks indiff.patch, not in full.yankreturn through the hidden result pointer, against the PS5 binary's actual calling convention. Not checked on hardware or in a build.docs/dev/debtinventory rows were not matched against the inventory file.KillRing.cpppermalink in the description was not opened.To get this to a good state
Nothing is required.
Optional: remove the duplicate "Derived from" line at
PalKillRing.cpp:26.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-17T20:08:09Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
The five stubs match the header, the removal from
Export.cppis complete at this head, and no build or test was run here.What I ran
Head
e2c82afd93c9700fc8b596177ff9ca2d27607a6d, basemain. Merged-preview check: not applicable (diff read at the pinned head).Checks run by reading the repository at the head with the reader:
Results
nkwebkit_palkillringKillRingsymbols at headPalKillRing.cppReleaseaccepts nullWtfString.cpp:245tests/*.cppglob inCMakeLists.txtFindings
Blocking
None.
Non-blocking
core/libs/prx/libSceNKWebKit/tests/PalKillRing.cpp:27—appendandprependare called with an emptyString, so the test never shows that a non-null argument is left untouched, which the description claims. A string with text in the argument would cover that. Optional.Sources
e2c82afd93c9700fc8b596177ff9ca2d27607a6d:PalKillRingExports.hpp,PalKillRing.cpp,WtfStringAbi.hpp,WtfString.cpp,CMakeLists.txt.Not verified
nkwebkit_palkillringtest were not run here. The author's Linux Mint run is not reproduced.Stringby value from theextern "C"declarations depends on the compiler's hidden-pointer ABI. It was not checked on the PS5 target.Export.cppandinclude/InventoryExports.hppare listed as reviewed. Only their diff hunks (removal of the five stubs) were read. The rest of each file was checked by a search forKillRingonly, not read in full.docs/dev/CONVENTIONS.mdwas not read, so the required placement is unconfirmed.PalKillRing.cppwas not checked against AGENTS.md.Files read:
description.md,commits.md,manifest.json,diff.patch,PalKillRingExports.hpp,PalKillRing.cpp,tests/PalKillRing.cpp,libSceNKWebKit.hpp, and the debt fragment, in full or by their diff hunks.Export.cppandInventoryExports.hppas described above. Excluded by rule: none.To get this to a good state
Nothing is required.
Optional: the test case in the non-blocking list, and the debt-file placement once
CONVENTIONS.mdis checked.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T00:23:28Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation matches the stated upstream no-op behavior and returns a null
String; the review is incomplete because two changed files were not fully read, so approval is not justified.What I ran
Reviewed head
d7808b81ba051f598c8e7f39513ee7c8b47b9bdc. No build or tests were run. Read the prepared description, commits, manifest, diff, and review folder README; read all added lines in the included changed files except the debt fragment, plus targeted ranges ofExport.cppandInventoryExports.hpp.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
The complete contents of
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwere not read; only the local diff context was inspected. The 15 added lines indocs/dev/debt/changes/feat-nkwebkit-pal-kill-ring.mdwere listed in the manifest but not read. No build, tests, or console behavior were verified. Other changed files listed in the manifest were read in full, including all added lines.To get this to a good state
Nothing is required. Optional: complete review of the unread changed-file lines and run the reported test before deciding whether to approve.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T18:15:33Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation matches the stated non-Mac behavior and the inspected ABI declaration returns a null
Stringthrough the C++ return path.What I ran
Reviewed head
736d0670d3260d7fdbe98304713cbf9ee09b22cd. Read the prepared description, commits, manifest, diff, and every changed file listed in the manifest usingrepo_read.pytools. No build or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, tests, console comparison, or runtime behavior was verified. The prepared review bundle did not provide
files.json; the manifest listed two large changed files,Export.cppandInventoryExports.hpp, which were read only at the displayed initial ranges through the reader. The changed hunks for these files are shown indiff.patchand were reviewed. No other files were excluded by rule in the available bundle.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T03:52:14Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation matches the described non-Mac
KillRingbehavior in the inspected code, but validation was limited to source review.What I ran
Reviewed head
e561e5d3824d7ba3ffc461f32b6b1e5f38a35f91using the prepared diff andrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
Not verified
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwere excluded due to size. I inspected the changed hunks in the diff and the nearby declarations at the pinned head.KillRing.cpp.PalKillRingExports.hpp,libSceNKWebKit.hpp,PalKillRing.cpp,tests/PalKillRing.cpp, and the debt fragment. The full text of the two excluded files was not read.To get this to a good state
Nothing is required. Optionally run the new test in CI and share the result.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T03:48:49Z.
Review: COMMENTED
Architecture findings (1)
Advisory architecture findings (1)
2ce314f9-eac1-44a0-bfb9-c9398789fb7eReviewing files that changed from the base of the PR and between
aecfbf79b1andad0206b0c1.core/libs/prx/libSceNKWebKit/Export.cppcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppcore/libs/prx/libSceNKWebKit/include/PalKillRingExports.hppcore/libs/prx/libSceNKWebKit/libSceNKWebKit.hppcore/libs/prx/libSceNKWebKit/src/PalKillRing.cppcore/libs/prx/libSceNKWebKit/tests/PalKillRing.cppdocs/dev/debt/changes/feat-nkwebkit-pal-kill-ring.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T06:45:40Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed implementation matches the described null-string
yankbehavior; review was limited becauseExport.cppwas excluded from the review bundle and the test was not run.What I ran
Reviewed head
ad0206b0c19be8e2f8b921a9f3f965a12b514195. Read the prepared description, commits, manifest and diff, then used the pinned reader for changed source and test files and the string ABI definition. No commands or tests were run.Results
String.Export.cppwas excluded as too large.Findings
Blocking
None verified in the source reviewed.
Non-blocking
None.
Not verified
core/libs/prx/libSceNKWebKit/Export.cppwas not read; the manifest marks it excluded as too large. No build, test, physical-console behavior, or console module comparison was verified. The description reports a Linux Mint 22.3 test run, but that was not performed as part of this review. The other changed files were included and read:InventoryExports.hpp,PalKillRingExports.hpp,libSceNKWebKit.hpp,PalKillRing.cpp,tests/PalKillRing.cpp, and the debt change fragment.To get this to a good state
Nothing is required. Optional: verify behavior against a console module and run the new test on the reviewed head.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:59:23Z.
Review: COMMENTED
Built the branch’s changed sources and ran PalKillRing on Linux against the existing runtime libraries. The test run passed and covered the kill-ring yank behavior.
AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T22:44:52Z.
Review: APPROVED
Reviewed — looks good
The implementation returns a default null
Stringfor the newly handled export, and I found no blocking defects.What I ran
Reviewed head
566f0059c61e342d3e3332b537c2762790961017. No tests or builds were run. I inspected the changed files and the relevant pinned source context withrepo_read.py.Results
Negative control
A negative control could not be run; no tests were executed.
Findings
Blocking
None.
Non-blocking
None.
Sources
PalKillRing.cppat the reviewed head returns a defaultWtfAbi::String.WtfStringAbi.hppat the reviewed head defines the default string with a null implementation pointer.Not verified
No test or build was run, and behavior on a physical console was not verified. The reviewed files were
Export.cpp(changed region),InventoryExports.hpp(KillRing declarations),PalKillRingExports.hpp,libSceNKWebKit.hpp,PalKillRing.cpp,tests/PalKillRing.cpp, andfeat-nkwebkit-pal-kill-ring.md.files.jsonlists no excluded files.To get this to a good state
Nothing is required.
Pull request closed