feat(libSceNKWebKit): implement WebCore::SharedBuffer storage #20326
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20326"
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 Herolias on 2026-11-15T02:08:44Z.
What
Implements 29
WebCore::SharedBufferexports of libSceNKWebKit, which threw throughNotImplemented_nid_no_patchbefore:create(),create(const char*, size_t),create(const unsigned char*, size_t),create(Vector<char>&&)andcreate(Vector<uint8_t>&&);(),(const char*, size_t),(const unsigned char*, size_t)and(Vector<char>&&), and the D1 and D2 destructors;append(const SharedBuffer&),append(const char*, size_t),append(Vector<char>&&),clear,combineIntoOneSegmentandcopy;data,dataAsUInt8Ptr,size,isEmpty,beginandend;SharedBuffer::DataSegment::dataandsize.Source revision. These 3.20 export names do not match the pinned PS5 WebKit 11.x tree (80f77e94). That tree splits the class into
FragmentedSharedBufferandSharedBuffer, with a top-levelDataSegment, and has noVector<char>overloads. The names match upstream WebKit at 73a35b43be (August 2020), whereDataSegmentis nested and theVector<char>overloads exist. The layout and behaviour therefore follow that revision'sSharedBuffer.h,SharedBuffer.cppand WTFVector.h. Existing libSceNKWebKit debt entries already cite 73a35b43be for 3.20 exports that 11.x lacks.The guest layouts are in
src/SharedBufferAbi.hpp, checked withstatic_assert:SharedBufferis 48 bytes: theRefCountedcount,m_sizeat 8, and theVector<DataSegmentVectorEntry, 1>at 16, with its one inline entry at 32.DataSegmentis 32 bytes: theThreadSafeRefCountedatomic count, then aWTF::Variant<Vector<char>, FileSystem::MappedFileData>with its storage at 8 and itssigned charindex at 24.ASSERT_ENABLEDfields) and the PlayStation port options: no CF, Soup, GLib or GStreamer, so the variant has those two alternatives only.Behaviour:
WTF::fastMalloc,fastReallocandfastFree, asRefCounted,ThreadSafeRefCountedandVector<…, FastMalloc>do. Each segment is freed when its count drops to 0, and a mapped segment calls the existingWTF::FileSystemImpl::MappedFileDatadestructor export.create()andSharedBuffer()start with no segments and the inline entry. The byte andVector<char>&&forms then append one segment, an empty one for zero bytes, asappenddoes.append(const char*, size_t)copies through aVector<char>that grows tomax(length, 16)and is then shrunk to fit, asVector::appendandDataSegment::createdo.create(Vector<uint8_t>&&)copies the same way and leaves the vector untouched. TheVector<char>&&overloads take the vector's buffer, leave it empty, and shrink it to fit.max(size + 1, 16, capacity + capacity / 4 + 1).append(const SharedBuffer&)reserves exactly the combined count, shares the other buffer's segments by taking a reference, and appends a buffer to itself once.clearsets the size to 0, drops every segment, frees the segment buffer and goes back to the inline entry.combineIntoOneSegmentdoes nothing for zero or one segment. Otherwise it copies every segment into one exact-size vector and replaces the segments with it.dataanddataAsUInt8Ptrreturn null for no segments and otherwise combine and return the first segment's bytes.copyshares every segment, with its begin position, in a new buffer whose segment vector is reserved to the exact count.beginandendreturn the segment vector's first and past-the-end entries.The exports throw
std::invalid_argumentorstd::length_errorwhere WebKit crashes or has undefined behaviour:Vectorpointer;UINT_MAX, which noVector<char>can hold, or a segment count pastUINT_MAX / 16, whichWTF::Vectorcrashes on;UINT_MAXbytes;DataSegmentvariant index.Still throwing, listed in the debt fragment:
getSomeData, the nineSharedBufferDataViewexports,operator==,operator!=,toHexString,hintMemoryNotNeededSoon,SharedBuffer(MappedFileData&&),createWithContentsOfFile,createFromReadingFileanddecoder. The same revision settles them; they are left for a follow-up to keep this change reviewable.tryCreateArrayBuffer, because nothing here implementsJSC::ArrayBuffer.Debt:
docs/dev/debt/changes/feat-webcore-shared-buffer.mdadds three entries under Functional (layout, the storage exports, the remaining exports) and removes the inventory rows forSharedBuffer()C1 and C2 anddata().Overlap:
tools/pr_overlap.py --nameson all 49SharedBufferandSharedBufferDataViewnames found every one a stub onmainand no open pull request for any of them.tools/pr_overlap.py --branchexited 2 (failed closed) againstmainat851212fb98. It reported textual conflicts with seven of the 188 pull requests that share a file or exports, and four pull requests share exports:Export.cpp,InventoryExports.hppandLegacyExports.hpp, and #24883 adds a header at the same place as this change inlibSceNKWebKit.hpp. None of their diffs changes aSharedBufferline, so the resolution keeps both changes.608acceca9and adds theSharedBufferexports this change leaves throwing, so the tool lists this change's exports and new files as shared with it.Export.cppstub, theSharedBufferones this change deletes included, into newchunks/Export_Chunk*.cppfiles and build those instead ofExport.cpp. They implement none of them. Whichever merges second has to drop the copies of these stubs.main(#13515, #14138, #14164, #14259, #15170, #16510, #17550, #17569, #17771, #17793, #17805, #17912, #17917, #17933, #18395, #19486, #20327, #22556, #22557, #22674, #22678, #22680, #22684, #22689, #22937, #23159, #23181, #23468, #23755, #23757, #23758, #23772, #23847, #23999, #24000, #24009, #24019, #24154, #24319, #24332, #24339, #24347, #24350, #24504, #24516, #24550, #24867 and #24873). For each one I applied its diff of the shared files, taken from its merge base, to copies of those files frommainand from this branch in a directory outside the repository, withgit apply --reject. Thirty-five reject the same hunks on both, so this change adds no conflict for them. Apart from #22674, none of the 48 diffs changes aSharedBufferline. Thirteen reject more hunks on this branch:SharedBufferones this change deletes, inExport.cpp,InventoryExports.hppandLegacyExports.hpp. One of #18395's hunks adds a header next to this change's inlibSceNKWebKit.hpp. Whichever merges second keeps both changes.LegacyExports.hpp. Whichever merges second keeps both deletions.Tested
Fedora 44 x86-64, GCC 16.2.1, GNU ld 2.46.1, CMake 4.3.0, Ninja 1.13.2, Release with
-DBUILD_TESTING=ON, on2dce783f19, the merge withmainat851212fb98. No title, homebrew or console was run, because I have none, and no WebKit-using title's call sites were checked.mainconflicted only where both sides removed neighbouring stubs and declarations inExport.cppandLegacyExports.hpp: #22978 removedResourceRequestBase::httpHeaderFieldright afterSharedBuffer::create(), #23080 removedDefaultFilterOperation's C1 constructor right afterSharedBuffer'sVector<char>&&C2 constructor, #24172 removedBasicComponentTransferFilterOperation::blendright afterSharedBuffer::clear, and #22682 removedNicosia::SceneIntegration::Client's C2 constructor right afterSharedBuffer::isEmpty. Each resolution keeps both removals, and the branch's own diff againstmainis unchanged.cmake --build buildbuilt the whole tree with no warnings in the new files.nkwebkit_sharedbuffertest passed. It calls the exports through their extern "C" names on guest-heap objects and checks:WTF::fastMallocSize, the reference counts, and the inline segment entry;createfrom bytes copies into a segment shrunk to the byte count, and that zero bytes give one empty segment and a nulldata;create(Vector<char>&&)and the constructors empty the guest vector and shrink its buffer, and thatcreate(Vector<uint8_t>&&)leaves the vector's buffer, size and capacity as they were;append(const SharedBuffer&), including a self-append, with exact reserved capacities 3 and 6 and shared segment counts;combineIntoOneSegmentanddataproducing one exact-size segment and releasing the old ones, andcopykeeping a snapshot thatcleardoes not touch;dataandsizeof a mapped-file segment, the release of mapped segments by D1, and the throws for a valueless segment, for combining more thanUINT_MAXbytes and for null or too-long arguments.tools/select_tests.py(BUILD.md, "Selective test builds") was 1390 of 6560 tests, includingpublic_headers, thepublic_headers_compile_*tests andnkwebkit_sharedbuffer, and all 1390 passed, includingpatched_self_imports.tools/check_conventions.py --base origin/mainpassed for the branch, the title and this body.tools/debt_fold.py --checkfails on this branch with the same two errors as onmainat851212fb98, both inlibkernel_sysfragments frommain(docs-libkernel-pro-measured-1360.mdandfix-kernel-sys-title-workaround-bit-limit.md). On an exported copy of the branch without those two fragments,--checkpassed and--show libSceNKWebKitput the three entries under Functional and removed the three inventory rows. The branch does not edit the inventory line's throwing count, whichmaindropped in #19603.Sources
All WebKit links are upstream WebKit at
73a35b43be7ae44c084885bd3fa4b403e59723c8unless marked 11.x.DataSegment,Vector<char>andVector<uint8_t>overloads,begin/endoverDataSegmentVector, class-levelWEBCORE_EXPORTSource/WebCore/platform/SharedBuffer.hlines 70-247; the pinned 11.xSharedBuffer.hlines 263-310 puts these onFragmentedSharedBufferinsteadSharedBufferlayout:RefCountedcount,m_size,Vector<DataSegmentVectorEntry, 1>of{size_t beginPosition, Ref<DataSegment>}SharedBuffer.hlines 197-203 and 240-241;Source/WTF/wtf/RefCounted.hline 162 (unsigned m_refCount);Source/WTF/wtf/Vector.hlines 376-378 (buffer, capacity, size)DataSegmentlayout: atomic count, thenVariant<Vector<char>, MappedFileData>with the storage union first and asigned charindexSharedBuffer.hlines 129-193;Source/WTF/wtf/ThreadSafeRefCounted.hline 100;Source/WTF/wtf/Variant.hlines 1458-1459 and lines 255-262;Source/WTF/wtf/FileSystem.hlines 228-229Vector<char>andMappedFileDataalternatives exist: the PlayStation port has no CF, Soup, GLib or GStreamerSource/cmake/OptionsPlayStation.cmakelines 143-164WTF::fastMallocRefCounted.hline 185 andThreadSafeRefCounted.hline 43 (WTF_MAKE_FAST_ALLOCATED); theFastMallocallocator in the mangledVectornamescreate()andSharedBuffer()start empty with the inline entrySharedBuffer.hlines 72 and 218create/constructor from bytes callappend(data, size)SharedBuffer.hlines 73-74;Source/WebCore/platform/SharedBuffer.cpplines 39-47append(const char*, size_t)copies into a newVector<char>(capacitymax(length, 16)), shrunk to fit byDataSegment::createSharedBuffer.cpplines 181-189;SharedBuffer.hlines 134-138;Vector.hlines 1053-1056 (expandCapacity), lines 1255-1280 (append), line 768 and lines 1223-1251 (shrinkToFit,shrinkCapacity)Vector<char>&&overloads take the vector and leave it emptySharedBuffer.cpplines 55-58, 84-87 and 191-198;Vector.hlines 963-967 (move byswap)create(Vector<uint8_t>&&)copies and leaves the vector aloneSharedBuffer.cpplines 89-93Vector.hlines 1053-1056 and lines 1310-1325 (appendSlowCase)append(const SharedBuffer&)reserves the exact count and shares segments; a self-append copies the original segments onceSharedBuffer.cpplines 170-179;Vector.hlines 1184-1210 (reserveCapacity)clear, and the destructors, drop every segment and restore the inline entrySharedBuffer.cpplines 200-205;Vector.hline 770 and lines 1223-1251; the implicit destructor destroysm_segments(SharedBuffer.hline 241)combineIntoOneSegment,data,dataAsUInt8PtrSharedBuffer.cpplines 95-128;Vector.hlines 1212-1221 (reserveInitialCapacity)copySharedBuffer.cpplines 207-218size,isEmpty,begin,endSharedBuffer.hlines 115-117 and 202-203DataSegment::dataandsizevisit the variantSharedBuffer.cpplines 232-252 and 313-332MappedFileData's destructorSource/WTF/wtf/FileSystem.hline 216 andFileSystem.cppline 281; called through the existing_ZN3WTF14FileSystemImpl14MappedFileDataD1EvexportChecklist
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-15T02:20:11Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
fbbb1479db:tools/check_conventions.pypassed;git diff --checkreported whitespace errors.nkwebkit_sharedbuffer_testsbuilt cleanly.nkwebkit_sharedbuffer):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T04:09:06Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
b3b372402b:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_sharedbuffer_testsbuilt cleanly.nkwebkit_sharedbuffer):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.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-15T04:53:51Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected implementation and reported checks show no verified blocking defect, but the review is incomplete because several changed files and console behavior were not verified.
What I ran
Pinned head:
b3b372402b8b43eacffa9260f26100a2a2787352. Read the prepared description, commits, manifest, and diff, then inspected targeted source files and an excerpt ofExport.cppthroughrepo_read.py. No build or tests were run in this review.Results
Negative control
Not run; no tests were run during this review.
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Sources
Inspected the changed
SharedBufferimplementation, ABI declarations, exports header, tests, and the changed include inlibSceNKWebKit.hpp, plus an excerpt and symbol search inExport.cpp.Not verified
The full contents of
Export.cpp,InventoryExports.hpp,LegacyExports.hpp, and the debt documents were not read. The review bundle identifies three changed files as excluded for size; other changed files were also not fully inspected. No build, tests, console module, or title behavior was independently checked. The description reports Fedora build and test results, which were not independently verified.To get this to a good state
Nothing is required. Optional: complete review of the unread changed files and independently check the reported build and tests.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T01:15:52Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the code inspected; the remaining source and console ABI checks were not verified.
What I ran
Reviewed head
260ed197de6cc1a13db76e481f368cd0da37c685. No build or tests were run in this review; the test and build results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The changed
Export.cppandInventoryExports.hppwere excluded as too large for the review folder and were not read through the pinned reader. The fullLegacyExports.hppwas included but not read; its diff contains no added lines. The changed export-removal hunks indiff.patchwere inspected. The author reports successful host builds and tests, but they were not run here. Console layout and behavior, Windows builds, and sanitizer or Valgrind leak checks were not verified. Files read:review/description.md,review/commits.md,review/manifest.json,review/README.md,review/diff.patch,SharedBuffer.cpp,SharedBufferAbi.hpp,SharedBufferExports.hpp, andlibSceNKWebKit.hpp. Changed files reviewed in full:SharedBuffer.cpp,SharedBufferAbi.hpp, andSharedBufferExports.hpp; the include hunk oflibSceNKWebKit.hppwas read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T10:16:27Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation is carefully tested on the host, but its stated ABI and behavior have not been compared with a console module, so I cannot recommend a formal approval yet.
What I ran
Reviewed head
4a6c67d686e0dae68c26003ce5c73a0d719c0825. I did not run commands or tests; the build and test results below are author reported.Results
Findings
Blocking
None.
Non-blocking
SharedBuffersplit. The debt entry also records that this layout has not been compared with a console module. Verify the layout and the 3.20 export behavior against the console module before relying on it in a title.Sources
The changed implementation and ABI are in
core/libs/prx/libSceNKWebKit/src/SharedBuffer.cppandcore/libs/prx/libSceNKWebKit/src/SharedBufferAbi.hpp. The debt entry documents the upstream revision used and the unverified console comparison indocs/dev/debt/changes/feat-webcore-shared-buffer.md.Not verified
No checks were run by me. The host build, 1,174-test selection, conventions check, overlap checks, and debt-fold check are author reported. Console behavior, title call sites, Windows build, and leak analysis were not verified. I read the full changed implementation, ABI header, export declarations, test, and debt fragment, as well as the description, commits, manifest, and diff. The changed files
core/libs/prx/libSceNKWebKit/Export.cppandcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppwere excluded from the review bundle for size;core/libs/prx/libSceNKWebKit/include/LegacyExports.hppwas read only at its first five lines. I did not inspect other repository context.To get this to a good state
Nothing is required. Optional: compare the ABI and runtime behavior against a console module, and check title call sites before relying on these exports.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T13:54:43Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: make segment creation exception safe so allocation failure cannot leave a buffer’s segment vector inconsistent.
What I ran
Reviewed head
7a6d5ccfdd619d038022bb60b33bc9ff7237d18dusingrepo_read.pythrough the prepared review folder. No build or tests were run by me.Results
Findings
Blocking
core/libs/prx/libSceNKWebKit/src/SharedBuffer.cpp:194:AppendSegmentincrementssegments.sizebeforeCreateSegmentallocates the segment. If allocation fails, the slot contains an indeterminate pointer while the vector size includes it; later destruction or clearing can dereference that pointer. Create the segment before publishing the new entry, and ensure the buffer state remains valid if the allocation throws.Non-blocking
None.
Not verified
No build, tests, console module comparison, leak run, Windows build, or title call-site review was performed by me. The PR description reports its own Fedora build and tests. All changed files were read:
core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/include/LegacyExports.hpp,core/libs/prx/libSceNKWebKit/include/SharedBufferExports.hpp,core/libs/prx/libSceNKWebKit/libSceNKWebKit.hpp,core/libs/prx/libSceNKWebKit/src/SharedBuffer.cpp,core/libs/prx/libSceNKWebKit/src/SharedBufferAbi.hpp,core/libs/prx/libSceNKWebKit/tests/SharedBuffer.cpp, anddocs/dev/debt/changes/feat-webcore-shared-buffer.md. No changed files were excluded from review.To get this to a good state
Make
AppendSegmentallocate the segment before incrementing the vector size, with cleanup on failure where needed. Rerun the build and relevant tests on the new head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T15:18:49Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: ensure append operations reject size overflow before mutating segment references or buffer state.
What I ran
Reviewed head
ad8f6571b7c97f3e625ea49d475a0ed1e4028d76againstmainfrom the prepared diff. No build or tests were run.Results
Findings
Blocking
append(const SharedBuffer&)can overflowbuffer.sizewhen the combined byte count exceedssize_t. The routine incrementsbuffer.sizeas it appends each shared segment, without validating the combined size first; wraparound then breaks the buffer's size and segment positions. Detect overflow before taking references or changing the destination, and throw consistently with the other oversize paths.core/libs/prx/libSceNKWebKit/src/SharedBuffer.cpp:936Non-blocking
None.
Not verified
No commands, build, tests, console execution, or sanitizer checks were run. The changed implementation and ABI header were reviewed from the diff; the full changed file texts were not read through the repository reader. The files excluded by rule were not inspected. Build and test results in the PR description are author-reported only.
To get this to a good state
Add a preflight overflow check to
append(const SharedBuffer&)before it reserves or mutates the destination, then rerun the relevant tests on the updated head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T12:18:38Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Read the diff and relevant changed source at head
290685727853c28f13a926e8b78ce56f193a8227. No commands or tests were run in this review.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
Not verified
Read:
description.md,commits.md,manifest.json,diff.patch; changedSharedBufferExports.hpp,SharedBuffer.cpp,SharedBufferAbi.hpp,tests/SharedBuffer.cpp,LegacyExports.hpp,libSceNKWebKit.hpp, and the debt change file.Export.cppandInventoryExports.hppwere excluded from the review folder; only their diff hunks were read.files.jsonwas unavailable, so its excluded-file details were not verified. No build or test was run; author-reported checks were not independently verified. Console behavior and Windows build were not verified.To get this to a good state
Nothing is required. Optional: compare the ABI layout and behavior against a console module.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T14:30:55Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation has no verified blocking defect in the inspected code, but I could not independently run the checks or complete the review of every included changed file.
What I ran
Reviewed head
608acceca9fc29864970d6f832f720c9989fb941; no commands were run. The PR description reports a Fedora 44 build and tests, including one unrelated selective test failure; these were not independently verified.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
Sources
Not verified
Read:
SharedBuffer.cpp,SharedBufferAbi.hpp,SharedBufferExports.hpp,SharedBuffer.cpptests,libSceNKWebKit.hpp, and the debt change file. Read the relevant diff sections and manifest.LegacyExports.hppwas not read in full; only its diff context was inspected.Export.cppandInventoryExports.hppwere excluded from the review folder as too large; their relevant deletions were visible in the diff. No repository build, tests, console behavior, or Windows build was verified.To get this to a good state
Nothing is required. Optional: verify the layout against a console module and run the reported build and tests on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T22:38:13Z.
Review: APPROVED
Reviewed — looks good
The implementation and guest-side tests at head
0c012dbe04643f664381598188b1b35649792245are internally consistent for the described SharedBuffer storage exports; I did not run commands or verify console behavior.What I ran
No commands were run. I read the prepared review bundle and targeted repository files through
repo_read.pyat the pinned head.Results
Findings
Blocking
None identified in the code read.
Non-blocking
None.
Not verified
The review bundle marks
Export.cppandinclude/InventoryExports.hppas excluded because they are too large; I did not inspect their changed regions through the reader. I read the changedLegacyExports.hpponly through the diff hunk excerpts, not its full text. I also did not inspect console module layout, title call sites, Windows behavior, or memory-leak checks. The author reports a successful Fedora build, targeted test, and 1,331-test selection; these were not run by me.Files read:
description.md,commits.md,manifest.json,diff.patch;include/SharedBufferExports.hpp,libSceNKWebKit.hpp,src/SharedBuffer.cpp,src/SharedBufferAbi.hpp,tests/SharedBuffer.cpp,CMakeLists.txt, anddocs/dev/debt/changes/feat-webcore-shared-buffer.md. Files excluded or incompletely read:Export.cpp,include/InventoryExports.hpp, and fullinclude/LegacyExports.hpp. The manifest’s remaining entries were not individually inspected.To get this to a good state
Nothing is required. The implementation has no blocking defect in the code reviewed. Console layout and behavior remain unverified.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T17:21:24Z.
Review: COMMENTED
Reviewed — no blocking findings
No verified blocking defects were found in the inspected implementation; console ABI compatibility and the reported checks were not independently verified.
What I ran
Inspected the prepared diff and selected files at head
f4a3ccc0b382cf887b1badf2c19588d55ad0631eusing the review reader. No build or tests were run.Results
Negative control
Not run; no test execution environment was available through the reader.
Findings
Blocking
None.
Non-blocking
The layout and behavior have not been compared with a console module. Validate the assumed ABI before relying on these exports in a title.
Sources
Implementation reviewed at SharedBuffer.cpp on the reviewed commit.
Not verified
Build, tests, console behavior, and title call sites were not independently checked.
Export.cppandInventoryExports.hppfull texts were excluded by the prepared bundle; their relevant diff hunks were available. Read included changed files:LegacyExports.hpp(diff deletions),SharedBufferExports.hpp,libSceNKWebKit.hpp,SharedBuffer.cpp,SharedBufferAbi.hpp,tests/SharedBuffer.cpp, andfeat-webcore-shared-buffer.md.To get this to a good state
Nothing is required. Optional: compare the layout and behavior against a console module and run the build and test checks on the reviewed revision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T04:47:05Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation covers the described
SharedBufferstorage exports, but review completeness is limited because two changed core files were excluded from the prepared folder and only selected source ranges were inspected.What I ran
Reviewed head
2dce783f1973bd36657726a62c0be2a77eae8ea5. No build or test commands were run; validation results below are reported in the PR description.Results
Findings
Blocking
None found in the source ranges read.
Non-blocking
None.
Not verified
Reviewed:
description.md,commits.md,manifest.json,diff.patch,SharedBuffer.cpplines 1–394,SharedBufferAbi.hpplines 1–68, andtests/SharedBuffer.cpplines 1–275. TheExport.cppandInventoryExports.hppfull texts were excluded as too large;LegacyExports.hppand other changed files listed in the manifest were not read in full. The preparedfiles.jsonwas not available through the reader. No console behavior, Windows build, or leak run was verified. The PR description reports a successful build, selected test run, and convention check; these were not run during this review.To get this to a good state
Nothing is required. Optional: complete review of the changed export declarations and inventory files before merging.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T12:27:35Z.
Review: COMMENTED
Reviewed — no blocking findings
The implementation and the available diff show no verified blocking defect; the review is incomplete because
Export.cppwas excluded and no checks were run here.What I ran
12efa8332abe252d16206fc27ba9b7754684120dusing the prepared diff andrepo_read.py.Results
Findings
Blocking
None verified in the files read.
Non-blocking
None.
Not verified
core/libs/prx/libSceNKWebKit/Export.cppwas excluded as too large, so its full text and export wiring were not reviewed. The description also says console behavior, Windows build, leak checks, and WebKit-using title call sites were not checked. This review did not run the author-reported build or tests. Other changed files were read: the export declarations, ABI definitions, implementation, tests, header inclusion, and debt fragment. The inventory and legacy export headers contain removals only; the diff was inspected.To get this to a good state
Nothing is required. The excluded export file and the platform and call-site checks remain unverified.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-01T19:24:44Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks the change in the inspected code; approval is not justified because the console ABI layout and some changed files were not fully verified.
What I ran
Reviewed head
155fc1909206ed835bf8511b77efff0eea401b28. Read the prepared description, commits, manifest and diff; inspected changed source text and relevant diff hunks. No tests or builds were run. The pinned reader could not complete its read because it failed while trying to append its read log in the read-only workspace.Results
Negative control
Not run; no tests were run independently.
Findings
Blocking
None identified in the code inspected.
Non-blocking
core/libs/prx/libSceNKWebKit/src/SharedBufferAbi.hpp:39defines the guest layout using upstream assumptions, and the change description says it has not been compared with a console module. Verify the 48-byte buffer and 32-byte segment layout against the target module when available; the debt entry already records this limitation.Sources
Not verified
Full text was read for
SharedBuffer.cpp,SharedBufferAbi.hpp,tests/SharedBuffer.cppanddocs/dev/debt/changes/feat-webcore-shared-buffer.md(4 of 9 reviewed files). The remaining five changed files were inspected through relevant diff hunks only:Export.cpp,include/InventoryExports.hpp,include/LegacyExports.hpp,include/SharedBufferExports.hppandlibSceNKWebKit.hpp. No files were excluded by the supplied review rules. Console behavior, console ABI layout, and the author-reported tests and build were not independently verified.To get this to a good state
Nothing is required. Optional: compare the ABI layout against a console module when one is available.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-12-01T19:31:26Z.
Review: COMMENTED
🏛️ Architecture findings (2)
Advisory architecture findings (2)
💬 Code review
Actionable comments posted (1)
011e8725-4238-4259-b399-34448bac4703Reviewing files that changed from the base of the PR and between
1891347284and155fc19092.core/libs/prx/libSceNKWebKit/Export.cppcore/libs/prx/libSceNKWebKit/include/InventoryExports.hppcore/libs/prx/libSceNKWebKit/include/LegacyExports.hppcore/libs/prx/libSceNKWebKit/include/SharedBufferExports.hppcore/libs/prx/libSceNKWebKit/libSceNKWebKit.hppcore/libs/prx/libSceNKWebKit/src/SharedBuffer.cppcore/libs/prx/libSceNKWebKit/src/SharedBufferAbi.hppcore/libs/prx/libSceNKWebKit/tests/SharedBuffer.cppdocs/dev/debt/changes/feat-webcore-shared-buffer.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:03:05Z.
Review: COMMENTED
Compiled the changed
SharedBufferimplementation with the branch’s fixture against the existing Linux PRXs. It passed segment, append, and null-input checks, including the oversized append rejection.AI-assisted: yes.
Pull request closed