feat(libSceNKWebKit): implement FastBitVector storage operations #14256
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14256"
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 StoneDC on 2026-11-01T04:18:21Z.
What
Replaces three throwing
libSceNKWebKitinventory declarations withWTF::FastBitVector::clearRange,FastBitVectorWordOwner::resizeSlowandsetEqualsSlow. Range clearing preserves every bit outside the requested interval; growth preserves the existing words, zeroes new words and leaves the stored bit count to the inline caller; copying allocates independent storage, including self-copy. All allocation uses the module's existingfastMalloc/fastFreeexports.The 16-byte LP64 layout and behavior follow the paired header and pinned PS5 11.x WebKit mirror. Invalid ranges, accessed null storage, shrinking the word count and overflowing the upstream round-up throw; console ABI and behavior equivalence remain unverified and are recorded in the library debt file.
The debt entry is placed away from other pending additions. Existing inventory prose is explicitly identified as historical, with live totals linked to the generated report, so this change does not compete with other PRs over the shared numeric summary. Only these three entries are removed from the pending table.
Tested
BUILD_TESTING=ON: built the relinker, all system libraries and the relevant test executables; 75 related CTests passed (nkwebkit|public_headers|patched_libraries), including the 64 public-header compile batches and loading the patched libraries. Rebuilt and reran after rebasing ona8b98da3a5.tools/check_conventions.py --base origin/main, the public-header audit andgit diff --checkpassed.tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch feat/nkwebkit-fastbitvectorrefreshed 1,638 open PR heads and reported no confirmed shared exports, new files or textual conflicts. It exits 2 because #13515, #13992 and #14212 already conflict with main. I compared all three original patches by the exact target symbols and NIDs (q1+R1z2aE0E,NetEd5QBLRw,qY895ndHoiI): none occurs. Document merge previews are clean for the other related branches; #13515 and #13992 have the same one document-conflict region against main before and after this change, while #14212 merges with this document cleanly.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T04:27:28Z.
Review: APPROVED
Reviewed — looks good
The three implementations match the pinned PS5 WebKit 11.x routines for normal operations, preserve the owner layout, and add checked failures for invalid states and ranges.
What I ran
Reviewed head
584596ed7d747e079a9274b12a13dc4ed36ec086; the PR-recorded base is5b8211d66b66c2791b1e65f08856ae103fa6ef8d. The local merge preview was clean against current targetmainad4854ce62584b3438576786299c88e79d2e8601. Environment: Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build or run the C++ test locally.Results
mainad4854....ad4854...; no declared dependencies.CONFIGURE_DEPENDSglob includes the newtests/FastBitVector.cppfile. The heuristic warning below is a false positive.Raw command output
Precheck:
The precheck report says diff, conventions and live-stack checks passed. Its ABI and test-quality subprocesses could not run because the custom scripts are workspace-only; I ran them manually as listed above.
Diff check produced no output. Conventions:
ABI summary:
Test-quality heuristic:
CMake registration:
The global overlap helper failed with:
Hosted checks:
Findings
Blocking
None found in the inspected source and tests.
Non-blocking
The PR explicitly leaves console-module ABI equivalence unverified; keep that limitation in the debt record. The author-reported C++ builds, runtime test cases, sanitizers and negative controls were not independently run in this review.
Sources
FastBitVector.cppFastBitVector.hNot verified
No build, C++ test, sanitizer run, console, macOS or title run was performed locally. The PR's build/test, sanitizers and negative-control results are author-reported. The global overlap scan did not complete; related open PRs were checked manually as stated above. Hosted Windows CI was pending at the last refresh.
Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-11-01T19:49:32Z.
Review: COMMENTED
Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (
Unblocks: noneis allowed), and it contained no code review.