feat(libSceNKWebKit): implement StringImpl::destroy and StringImpl::adopt #20291

Closed
RiverWhy wants to merge 10 commits from upstream-pr/20291 into main
RiverWhy commented 2026-11-14 23:59:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by RiverWhy on 2026-11-14T23:59:55Z.


What

WTF::StringImpl::destroy was a throwing placeholder. WebKit's inline deref calls it when a string's last reference goes away, so guest code built against WTF stopped the title there; the WTF value layouts debt entry recorded that ("a string whose last reference guest code drops terminates"). This implements it and the two StringImpl::adopt overloads, following the pinned PS5 11.x WebKit source.

  • StringImpl::destroy(StringImpl*): frees an internal, owned or substring buffer (the substring's parent is released) and the StringImpl. It shares FreeUnreferenced with Release, which had the same path inline. Atom and symbol strings and external buffers throw through NotImplemented_nid_no_patch: there is no atom table, symbol registry or external free function here. A null or static string throws where the source asserts.
  • StringImpl::adopt(StringBuffer<LChar>&&) / adopt(StringBuffer<UChar>&&): an empty buffer returns the shared empty string; otherwise the guest fastMalloc buffer becomes an owned string (flags 5 or 1) without copying, and the buffer's data is cleared while its length stays, as release() does. A nonempty buffer without data throws.
  • StringBuffer<CharType> layout ({unsigned length; CharType* data}, 16 bytes) added to WtfStringAbi.hpp with static_asserts.
  • Placeholders removed from Export.cpp and InventoryExports.hpp; debt: a fragment, docs/dev/debt/changes/feat-nkwebkit-stringimpl-destroy-adopt.md, adds the entry, removes the 3 inventory rows and updates the two entries that called destroy a stub.

The progress count rises by 2, not 3: destroy still calls NotImplemented_nid_no_patch for atom and symbol strings, so it is counted as pending and import_audit.py reports it as partial instead of stub.

Tested

Linux Mint 22.3:

  • New nkwebkit_wtfstringimpllifetime test: both adopt overloads (no copy, flags, buffer state), empty and null-data buffers, destroy of internal, owned and substring strings (the parent's reference count drops back), and the null, static, atom, symbol and external refusals.
  • ctest -R nkwebkit: 87 tests passed, nkwebkit_wtf included.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of 8-bit and 16-bit strings when transferring buffers or releasing storage, including safeguards for empty, shared, and static strings.
  • Tests
    • Added coverage for string buffer adoption and storage lifetime behavior.
  • Documentation
    • Added a development note describing string handling behavior and related ABI limitations.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5317615811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20291). Originally posted by [RiverWhy](https://github.com/RiverWhy) on 2026-11-14T23:59:55Z. --- ### What `WTF::StringImpl::destroy` was a throwing placeholder. WebKit's inline `deref` calls it when a string's last reference goes away, so guest code built against WTF stopped the title there; the WTF value layouts debt entry recorded that ("a string whose last reference guest code drops terminates"). This implements it and the two `StringImpl::adopt` overloads, following the pinned [PS5 11.x WebKit source](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/text/StringImpl.cpp#L113-L157). - `StringImpl::destroy(StringImpl*)`: frees an internal, owned or substring buffer (the substring's parent is released) and the `StringImpl`. It shares `FreeUnreferenced` with `Release`, which had the same path inline. Atom and symbol strings and external buffers throw through `NotImplemented_nid_no_patch`: there is no atom table, symbol registry or external free function here. A null or static string throws where the source asserts. - `StringImpl::adopt(StringBuffer<LChar>&&)` / `adopt(StringBuffer<UChar>&&)`: an empty buffer returns the shared empty string; otherwise the guest `fastMalloc` buffer becomes an owned string (flags 5 or 1) without copying, and the buffer's data is cleared while its length stays, as [`release()`](https://github.com/neonmodder123/PS5-WebKit-11.x/blob/80f77e94c63ee7202eec3d4b5b1a021dd89011ba/Source/WTF/wtf/text/StringBuffer.h#L76-L81) does. A nonempty buffer without data throws. - `StringBuffer<CharType>` layout (`{unsigned length; CharType* data}`, 16 bytes) added to `WtfStringAbi.hpp` with `static_assert`s. - Placeholders removed from `Export.cpp` and `InventoryExports.hpp`; debt: a fragment, `docs/dev/debt/changes/feat-nkwebkit-stringimpl-destroy-adopt.md`, adds the entry, removes the 3 inventory rows and updates the two entries that called `destroy` a stub. The progress count rises by 2, not 3: `destroy` still calls `NotImplemented_nid_no_patch` for atom and symbol strings, so it is counted as pending and `import_audit.py` reports it as partial instead of stub. ### Tested Linux Mint 22.3: - New `nkwebkit_wtfstringimpllifetime` test: both adopt overloads (no copy, flags, buffer state), empty and null-data buffers, `destroy` of internal, owned and substring strings (the parent's reference count drops back), and the null, static, atom, symbol and external refusals. - `ctest -R nkwebkit`: 87 tests passed, `nkwebkit_wtf` included. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved handling of 8-bit and 16-bit strings when transferring buffers or releasing storage, including safeguards for empty, shared, and static strings. * **Tests** * Added coverage for string buffer adoption and storage lifetime behavior. * **Documentation** * Added a development note describing string handling behavior and related ABI limitations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
PrivacyOnion commented 2026-11-15 05:16:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T05:16:55Z.

Review: APPROVED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 95ece96fe5:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: nkwebkit_wtfstringimpllifetime_tests built cleanly.
  • CTest (nkwebkit_wtfstringimpllifetime):
    1/1 Test #4120: nkwebkit_wtfstringimpllifetime ...   Passed    0.02 sec
    100% tests passed, 0 tests failed out of 1
    
  • Negative control: with core/libs/prx/libSceNKWebKit/Export.cpp, core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp, core/libs/prx/libSceNKWebKit/include/WtfExports.hpp, core/libs/prx/libSceNKWebKit/src/WtfString.cpp, core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp reverted to main, the new tests do not build/link without the change; restoring it makes them build and pass.
  • Code reading:
    • core/libs/prx/libSceNKWebKit/src/WtfString.cpp: Verified ZN3WTF10StringImpl7destroyEPS0 validates against null pointers (throwing std::invalid_argument) and static strings (checking impl->refCount & 1), and properly delegates unsupported atom, symbol, and external buffer types to NotImplemented_nid_no_patch.
    • core/libs/prx/libSceNKWebKit/src/WtfString.cpp: Verified FreeUnreferenced safely frees owned character buffers (BufferOwned), recursively releases substring parent references via Release(impl->parent) (BufferSubstring), and deallocates StringImpl instances without leaking.
    • core/libs/prx/libSceNKWebKit/src/WtfString.cpp: Verified AdoptBuffer returns the shared EmptyImpl() for zero-length buffers, rejects non-empty buffers having null data pointers by throwing std::invalid_argument, and zeroes buffer.data while preserving buffer.length.
    • core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp: Verified StringBuffer layout and alignment ({unsigned length; CharType* data}) are verified with static_assert to be 16 bytes with data at offset 8, ensuring LP64 and LLP64 cross-platform portability.
    • core/libs/prx/libSceNKWebKit/tests/WtfStringImplLifetime.cpp: Verified comprehensive test coverage exercising Latin-1 and UTF-16 adoption, empty and null-data edge cases, substring parent refcount balancing upon destruction, and rejection paths.
    • AGENTS.md and technical debt tracking: Verified strict compliance with zero comments in modified C++ code, removal of replaced stubs from Export.cpp and InventoryExports.hpp, and proper debt documentation in docs/dev/debt/changes/feat-nkwebkit-stringimpl-destroy-adopt.md.
  • Note: the AI-assisted checkbox can stay.

Looks Good To Me

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5909240239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20291#pullrequestreview-5909240239). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-15T05:16:55Z. **Review:** APPROVED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `95ece96fe5`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `nkwebkit_wtfstringimpllifetime_tests` built cleanly. - **CTest** (`nkwebkit_wtfstringimpllifetime`): ``` 1/1 Test #4120: nkwebkit_wtfstringimpllifetime ... Passed 0.02 sec 100% tests passed, 0 tests failed out of 1 ``` - **Negative control**: with `core/libs/prx/libSceNKWebKit/Export.cpp`, `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp`, `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp`, `core/libs/prx/libSceNKWebKit/src/WtfString.cpp`, `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` reverted to `main`, the new tests do not build/link without the change; restoring it makes them build and pass. - **Code reading**: - core/libs/prx/libSceNKWebKit/src/WtfString.cpp: Verified _ZN3WTF10StringImpl7destroyEPS0_ validates against null pointers (throwing std::invalid_argument) and static strings (checking impl->refCount & 1), and properly delegates unsupported atom, symbol, and external buffer types to NotImplemented_nid_no_patch. - core/libs/prx/libSceNKWebKit/src/WtfString.cpp: Verified FreeUnreferenced safely frees owned character buffers (BufferOwned), recursively releases substring parent references via Release(impl->parent) (BufferSubstring), and deallocates StringImpl instances without leaking. - core/libs/prx/libSceNKWebKit/src/WtfString.cpp: Verified AdoptBuffer returns the shared EmptyImpl() for zero-length buffers, rejects non-empty buffers having null data pointers by throwing std::invalid_argument, and zeroes buffer.data while preserving buffer.length. - core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp: Verified StringBuffer<CharType> layout and alignment ({unsigned length; CharType* data}) are verified with static_assert to be 16 bytes with data at offset 8, ensuring LP64 and LLP64 cross-platform portability. - core/libs/prx/libSceNKWebKit/tests/WtfStringImplLifetime.cpp: Verified comprehensive test coverage exercising Latin-1 and UTF-16 adoption, empty and null-data edge cases, substring parent refcount balancing upon destruction, and rejection paths. - AGENTS.md and technical debt tracking: Verified strict compliance with zero comments in modified C++ code, removal of replaced stubs from Export.cpp and InventoryExports.hpp, and proper debt documentation in docs/dev/debt/changes/feat-nkwebkit-stringimpl-destroy-adopt.md. - Note: the AI-assisted checkbox can stay. Looks Good To Me
MarcZX10 commented 2026-11-16 15:43:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T15:43:59Z.

Review: COMMENTED


Reviewed — no blocking findings

The changed lifetime and adoption paths are supported by the inspected code; no concrete blocking defect was verified.

What I ran

Reviewed head 2eeb0c0c0a8848bf138d8767eaf16e760b42ba42 using repo_read.py to inspect the prepared diff and targeted source ranges. No tests or build commands were run.

Results

Check Result Note
Diff and targeted source review passed Core lifetime and adoption paths inspected
Tests not run No commands executed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of Export.cpp, InventoryExports.hpp, and the complete changed-file set were not read; these files were excluded from the review folder as too large. The exact export integration, build, and author-reported tests were not independently verified. Inspected files: WtfString.cpp (targeted ranges), WtfStringAbi.hpp (lines 1–100), WtfStringImplLifetime.cpp, and the prepared diff. No excluded file is claimed to be fully reviewed.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5922825029 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20291#pullrequestreview-5922825029). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T15:43:59Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The changed lifetime and adoption paths are supported by the inspected code; no concrete blocking defect was verified. ## What I ran Reviewed head `2eeb0c0c0a8848bf138d8767eaf16e760b42ba42` using `repo_read.py` to inspect the prepared diff and targeted source ranges. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Core lifetime and adoption paths inspected | | Tests | not run | No commands executed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `Export.cpp`, `InventoryExports.hpp`, and the complete changed-file set were not read; these files were excluded from the review folder as too large. The exact export integration, build, and author-reported tests were not independently verified. Inspected files: `WtfString.cpp` (targeted ranges), `WtfStringAbi.hpp` (lines 1–100), `WtfStringImplLifetime.cpp`, and the prepared diff. No excluded file is claimed to be fully reviewed. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 05:57:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T05:57:19Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

What I ran

Reviewed head 3f9b74c8f3fca8408d23935bfa086674b1964409. No commands or tests were run; repo_read.py was unavailable as an executable tool in this session. Read the prepared description, commits, diff, manifest, and the full text of every file listed as reviewed in the manifest. Export.cpp and InventoryExports.hpp were excluded because they were too large; their relevant removals are visible in the diff.

Results

Check Result Note
Code review passed Changed implementation and tests inspected
Tests not run Author reports 87 tests passed
Excluded files not applicable Two full files omitted; relevant hunks reviewed

Findings

Blocking

None.

Non-blocking

  • WtfStringAbi.hpp:83-85 asserts the 8-bit StringBuffer layout only. The description says the layout is 16 bytes for both character types; adding equivalent UTF-16 assertions would make that stated ABI assumption explicit.

Not verified

No test execution, console binary comparison, or runtime console behavior was verified. Export.cpp and InventoryExports.hpp were not read in full; only their changed hunks in diff.patch were reviewed. The reported Linux Mint test results are author supplied, not run by this review.

To get this to a good state

Nothing is required. Optionally add UTF-16 StringBuffer layout assertions.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6003348073 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20291#pullrequestreview-6003348073). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T05:57:19Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. ## What I ran Reviewed head `3f9b74c8f3fca8408d23935bfa086674b1964409`. No commands or tests were run; `repo_read.py` was unavailable as an executable tool in this session. Read the prepared description, commits, diff, manifest, and the full text of every file listed as reviewed in the manifest. `Export.cpp` and `InventoryExports.hpp` were excluded because they were too large; their relevant removals are visible in the diff. ## Results | Check | Result | Note | |---|---|---| | Code review | passed | Changed implementation and tests inspected | | Tests | not run | Author reports 87 tests passed | | Excluded files | not applicable | Two full files omitted; relevant hunks reviewed | ## Findings ### Blocking None. ### Non-blocking - `WtfStringAbi.hpp:83-85` asserts the 8-bit `StringBuffer` layout only. The description says the layout is 16 bytes for both character types; adding equivalent UTF-16 assertions would make that stated ABI assumption explicit. ## Not verified No test execution, console binary comparison, or runtime console behavior was verified. `Export.cpp` and `InventoryExports.hpp` were not read in full; only their changed hunks in `diff.patch` were reviewed. The reported Linux Mint test results are author supplied, not run by this review. ## To get this to a good state Nothing is required. Optionally add UTF-16 `StringBuffer` layout assertions.
coderabbitai[bot] commented 2026-11-30 03:50:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T03:50:58Z.

Review: COMMENTED


Architecture findings (1)

Advisory architecture findings (1)

  • Trivial — The former destroy stub now frees eligible strings without checking that final dereference has occurred. Calling it while another reference remains can invalidate that reference. The intended inline caller is described as invoking destroy only at final dereference; no violation by that caller was established.
Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a0196a52-ad68-4965-9eca-0a14941669b0
Commits

Reviewing files that changed from the base of the PR and between aecfbf79b1 and 1e5ca211cd.

Files selected for processing: 7

  • core/libs/prx/libSceNKWebKit/Export.cpp
  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp
  • core/libs/prx/libSceNKWebKit/include/WtfExports.hpp
  • core/libs/prx/libSceNKWebKit/src/WtfString.cpp
  • core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp
  • core/libs/prx/libSceNKWebKit/tests/WtfStringImplLifetime.cpp
  • docs/dev/debt/changes/feat-nkwebkit-stringimpl-destroy-adopt.md
Files with no reviewable changes: 2

  • core/libs/prx/libSceNKWebKit/Export.cpp
  • core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6106672595 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20291#pullrequestreview-6106672595). Originally posted by [coderabbitai[bot]](https://github.com/apps/coderabbitai) on 2026-11-30T03:50:58Z. **Review:** COMMENTED --- <!-- coderabbit-ai-generated:v1 --> **Architecture findings (1)** <details> <summary>Advisory architecture findings (1)</summary> <dl> <dd> <br> - **Trivial** — The former destroy stub now frees eligible strings without checking that final dereference has occurred. Calling it while another reference remains can invalidate that reference. The intended inline caller is described as invoking destroy only at final dereference; no violation by that caller was established. </dd> </dl> </details> <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: Unavailable - **Branch**: Unavailable - **File**: No configuration file from this repository applied - **Commit**: Unavailable - **Layers**: defaults - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `a0196a52-ad68-4965-9eca-0a14941669b0` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between aecfbf79b16f30381fbba00a60ac33c817611f08 and 1e5ca211cd7042264d88e6457ed6948014ba0e9d. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 7</summary> <dl> <dd> <br> * `core/libs/prx/libSceNKWebKit/Export.cpp` * `core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp` * `core/libs/prx/libSceNKWebKit/include/WtfExports.hpp` * `core/libs/prx/libSceNKWebKit/src/WtfString.cpp` * `core/libs/prx/libSceNKWebKit/src/WtfStringAbi.hpp` * `core/libs/prx/libSceNKWebKit/tests/WtfStringImplLifetime.cpp` * `docs/dev/debt/changes/feat-nkwebkit-stringimpl-destroy-adopt.md` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files with no reviewable changes: 2</summary> <dl> <dd> <br> * core/libs/prx/libSceNKWebKit/Export.cpp * core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=ad1468b3-513e-4596-8d0a-1985dee2142a attempt=2d50c650-710d-4b21-9f7d-50528ccf3530 batch=1/1 -->
MarcZX10 commented 2026-11-30 06:43:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T06:43:23Z.

Review: APPROVED


Reviewed — looks good

The implementation and its lifetime tests were reviewed at head 1e5ca211cd7042264d88e6457ed6948014ba0e9d; no concrete blocking defect was found in the inspected changes.

What I ran

No commands or tests were run. I inspected the prepared diff and source at the pinned head using repo_read.py.

Results

Check Result Note
Source review passed Core implementation and tests inspected
Automated checks not run Author reports 87 tests passed

Findings

Blocking

None found in the inspected code.

Non-blocking

None.

Not verified

The changed Export.cpp full text was excluded as too large; its relevant diff hunk was reviewed. No build or tests were run, and console ABI behavior was not verified. The other changed files listed in the manifest were read: InventoryExports.hpp, WtfExports.hpp, WtfString.cpp, WtfStringAbi.hpp, WtfStringImplLifetime.cpp, and feat-nkwebkit-stringimpl-destroy-adopt.md.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6107883802 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20291#pullrequestreview-6107883802). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-30T06:43:23Z. **Review:** APPROVED --- # Reviewed — looks good The implementation and its lifetime tests were reviewed at head `1e5ca211cd7042264d88e6457ed6948014ba0e9d`; no concrete blocking defect was found in the inspected changes. ## What I ran No commands or tests were run. I inspected the prepared diff and source at the pinned head using `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Core implementation and tests inspected | | Automated checks | not run | Author reports 87 tests passed | ## Findings ### Blocking None found in the inspected code. ### Non-blocking None. ## Not verified The changed `Export.cpp` full text was excluded as too large; its relevant diff hunk was reviewed. No build or tests were run, and console ABI behavior was not verified. The other changed files listed in the manifest were read: `InventoryExports.hpp`, `WtfExports.hpp`, `WtfString.cpp`, `WtfStringAbi.hpp`, `WtfStringImplLifetime.cpp`, and `feat-nkwebkit-stringimpl-destroy-adopt.md`. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 12:03:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:03:11Z.

Review: COMMENTED


Compiled the changed string-lifetime code with WtfStringImplLifetime against the existing Linux PRXs. The fixture passed its adoption, shared-storage reference accounting, and rejection checks.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6169390767 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20291#pullrequestreview-6169390767). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T12:03:11Z. **Review:** COMMENTED --- Compiled the changed string-lifetime code with `WtfStringImplLifetime` against the existing Linux PRXs. The fixture passed its adoption, shared-storage reference accounting, and rejection checks. AI-assisted: yes.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!20291
No description provided.