feat(libSceNKWebKit): implement WebCore::SQLiteDatabaseTracker transaction counting #19550
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19550"
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 B-Howell on 2026-11-13T14:45:13Z.
What
Implements the four
WebCore::SQLiteDatabaseTrackerexports (setClient,incrementTransactionInProgressCount,decrementTransactionInProgressCount,hasTransactionInProgress) from the pinned PS5 11.xSQLiteDatabaseTracker.cpp: one locked client pointer and counter, the client'swillBeginFirstTransactionon the 0 to 1 step anddidFinishLastTransactionon the 1 to 0 step, and!client || count > 0forhasTransactionInProgress. Without a client, counting does nothing.The guest client is called through vtable slots 2 and 3 of the pinned
SQLiteDatabaseTrackerClient.h(virtual destructor pair first), the same wayInspectorFrontendRouter.cppcallsFrontendChannel. The 8-byte client layout is pinned withstatic_assertinSQLiteDatabaseTrackerAbi.hpp. A decrement at zero with a client set is anASSERTin the source; here it throws instead of wrapping. The debt file records the remaining gap (no console comparison) and the NKWebKit count goes from main's 5940 to 5936.tools/progress.py: libSceNKWebKit 2997/11258 to 3001/11258 (+4 implemented, system libraries 39.91%).Tested
Ubuntu (WSL2), Release, Ninja, current
mainc76eb6a264plus this commit.nkwebkit_sqlitedatabasetracker(fake guest client with counters on slots 2 and 3; trap functions on slots 0 and 1): no client, counting with a client, decrement at zero, and clearing the client. Passed 3/3 runs._ZN7WebCore21SQLiteDatabaseTracker24hasTransactionInProgressEv not implemented, subprocess aborted).ctest -R '^public_headers': 65/65 passed.626b8dfd8fe: merged main after #19603; count line removed. Ordinary merge ofmainat9b22c40f49a, conventions passed. The debt diff against main is now only this PR's entry and its 4 removed table rows. No code conflict and main changed none of this PR's other files, so not rebuilt.1b3ce192b4arewrites eachDerived fromline asDerived from <path>@<40-character revision>, one line per source file (maintainer ruling, #19819 comment). No code changed, so no rebuild;tools/check_conventions.py --base origin/mainpasses andgit diff --checkis clean.db0a13b034: merged mainc3d38470e0cand moved this PR's debt edits intodocs/dev/debt/changes/claude-nkwebkit-sqlite-db-tracker.md; the debt files match main, and the fragment applied to main gives the same debt lines as the previous head.debt_fold.py --checkandcheck_conventions.py --base origin/mainpass. Documentation only, no build.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)