feat(libSceNKWebKit): answer Process::identifier and setIdentifier as firmware 13.42 does #16386

Merged
BunnyFl merged 13 commits from upstream-pr/16386 into main 2026-11-10 11:46:49 +00:00
BunnyFl commented 2026-11-06 14:46:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-06T14:46:33Z.


What

WebCore::Process::identifier() threw, and WebCore::Process::setIdentifier (NID B6CB7QLhsdk) was not declared. This implements both as firmware 13.42's libSceNKWebKit.sprx does:

  • identifier() runs a one-time initialisation. If no identifier has been stored by then, it takes the next value of the object-identifier counter. It returns the stored value on every call.
  • setIdentifier(identifier) stores the value at any time, before or after the first identifier().
  • The counter is a new library-internal helper (src/WtfObjectIdentifier.cpp). In the module the same counter also feeds the HistoryItem constructors, seven other exports and internal code. None of those is implemented yet, and they can use this helper when they are.

The setter's name was recovered from its NID: _ZN7WebCore7Process13setIdentifierEN3WTF23ObjectIdentifierGenericINS_21ProcessIdentifierTypeENS1_38ObjectIdentifierMainThreadAccessTraitsEEE hashes to B6CB7QLhsdk, which is a defined export at 0x2e3bb0. The identifier is 8 bytes, passed in rdi (0x2e3bc0 below) and returned in rax (0x20717e); both exports use std::uint64_t.

Source. system_ex/common_ex/lib/libSceNKWebKit.sprx, firmware 13.42, SHA-256 e63acdc164592330a287cf6914c265336b27a357098a449c1609f8f82e104409. This was read from disassembly and not run, and nothing was measured on a console.

identifier() at 0x207100, read to its ret and its three ud2 arms:

207126: call 0x2ad65d0                 ; __std_init_once_begin_initialize_clr(&once 0x338b838, 0, &pending, 0)
207133: cmpl $0x0,-0x14(%rbp) ; je 0x20717e      ; already initialised: skip to the load
207139: cmpb $0x0,0x338b848 ; jne 0x20716a       ; a value was stored: keep it
207142: cmpb $0x1,0x3369ef8 ; je 0x207195        ; generation protection: crash (not modelled, see below)
20714b: mov 0x336f0c8,%rax ; inc %rax ; mov %rax,0x336f0c8   ; next object identifier
207152: movb $0x1,0x338b848 ; 207163: mov %rax,0x338b840
207175: call 0x2ad65f0                 ; __std_init_once_complete_clr
20717e: mov 0x338b840,%rax ; ... ret   ; return the stored value

setIdentifier at 0x2e3bb0, the whole function:

2e3bb0: cmpb $0x0,0x338b848 ; jne 0x2e3bc0
2e3bb9: movb $0x1,0x338b848
2e3bc0: mov %rdi,0x338b840 ; ret

The counter at 0x336f0c8 and the value at 0x338b840 lie past the file-backed end of their LOAD segment, so both start at 0, and the first generated identifier is 1. The import names come from their GOT slots (0x334e318, 0x334e328).

Debt. In docs/dev/debt/libSceNKWebKit.md, identifier() leaves the throwing inventory of "Additional callable exports" and its count becomes 6186 with main 9163fe9677 merged in, derived from the merged tree by resolving every inventory row to its symbol in Export.cpp and counting the rows whose symbol throws: 6193 data rows, 6186 throwing, 7 implemented in other translation units. The count line of main 9163fe9677 reads 6187. setIdentifier had no inventory row. One new entry:

  • The generation-protection check is not modelled. A scan of the module's executable segment finds that byte only in three cmpb instructions (0x207142, 0x7300c4, 0x7aee62) and in no store by address; what sets it is unknown.
  • Identifiers are unique only among implemented callers of the counter.

Tested

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 5c8f17e06b (main 9163fe9677 merged in):

  • A fifth merge of the same shape: the count sentence was the only conflict, and the count is derived from the merged tree rather than taken from a side. This branch said 6193, main 9163fe9677 says 6187, and the merged tree gives 6186: the merged table has 6193 data rows, of which 6186 resolve to a throwing symbol in Export.cpp and 7 are implemented in other translation units of the library (the same seven named under the previous head below). That is one below the 6187 in main's count line, for the one export whose row this pull request removes. The derivation was not repeated on main 9163fe9677 itself this time.
  • 56 of 56 pass, none Not Run (100% tests passed, 0 tests failed out of 56), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built. The set is the 55 tests listed under the previous head plus nkwebkit_contenttype, which main registered in between. main also added the 3rdparty/libxml2 and 3rdparty/libpsl submodules, which the library's build now needs.
  • tools/check_conventions.py --base upstream/main on the committed head 5c8f17e06b: all checks pass. review-tools/sig_users.py HEAD --build on the merged tree: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,991 open pull requests: 100 share files or exports with the branch, and none shares an export or a new file. Of the ones it could compare, five have a conflicting line, all in docs/dev/debt/libSceNKWebKit.md: #16853 and #16901 on both the debt entry (line 34 in the comparison base) and the inventory count sentence (line 113), and #15515, #15672 and #17726 on the count sentence alone; whichever lands first makes the others recount it. The run failed closed (exit 2) on 52 pull requests that conflict with main themselves and compared none of them. All 52 were then checked by hand at this head: every added and removed line of each diff searched for _ZN7WebCore7Process10identifierEv, the mangled setIdentifier name and the NID nyPJWvkvO0A. None of the three appears in any of them, and every diff was fetched.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 854b936dec (main 31b4aa91e8 merged in):

  • A fourth merge of the same shape: the count sentence was the only conflict, and the count is derived from the merged tree rather than taken from a side. This branch said 6269, main 31b4aa91e8 says 6194, and the merged tree gives 6193. The derivation is now exact instead of an offset: every row of the inventory table is resolved to its symbol in Export.cpp (by the NID its APS5_EXPORT entry carries, else by name) and counted only when that symbol's body calls NotImplemented_nid_no_patch. The merged table has 6200 data rows, of which 6193 resolve to a throwing symbol and 7 are implemented in other translation units of the library (WKURLRequestCopyFirstPartyForCookies, WKURLRequestCopyHTTPMethod, WKURLRequestCopySettingHTTPBody, WKURLRequestCopyURL, WKURLRequestCreateWithWKURL, _ZNK3WTF3URL17lastPathComponentEv, _ZNK3WTF3URL24strippedForUseAsReferrerEv). The same derivation gives 6194 on main 31b4aa91e8, which is what its own count line reads, so the merged number is one below main's, for the one export whose row this pull request removes.
  • The earlier bullets' first rule, NotImplemented_nid_no_patch calls in Export.cpp minus 2501, no longer holds: on main 31b4aa91e8 it gives 6192 against the table's 6194, because the subtrahend stands for calls outside the inventory and main has changed how many of those there are. It is replaced by the derivation above, which reads both numbers off the tree. That derivation reproduces the 6269 this description already states for the previous head 8da3f52c51; the heads before that were not re-derived.
  • 55 of 55 pass, none Not Run (100% tests passed, 0 tests failed out of 55), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built: guest_nkwebkit_dates, guest_nkwebkit_numbers, guest_nkwebkit_urls, nkwebkit_argumentreturn, nkwebkit_base, nkwebkit_bmallocfreelist, nkwebkit_cachecontrol, nkwebkit_concurrentptrhashset, nkwebkit_config, nkwebkit_connection, nkwebkit_constants, nkwebkit_contextsettings, nkwebkit_contexttermination, nkwebkit_cookieutil, nkwebkit_credentialbase, nkwebkit_diagnosticloggingkeys, nkwebkit_fastbitvector, nkwebkit_fieldsetters, nkwebkit_forwarding, nkwebkit_historyitem, nkwebkit_htmlinteger, nkwebkit_httpheaderfield, nkwebkit_httpheadermap, nkwebkit_inspectoridentifiersfactory, nkwebkit_jsc, nkwebkit_jsonimpl, nkwebkit_mainthread, nkwebkit_mediatime, nkwebkit_mimetyperegistry, nkwebkit_mockmediadevices, nkwebkit_noops, nkwebkit_palsessionid, nkwebkit_parsedcontentrange, nkwebkit_preferences, nkwebkit_regiongeometry, nkwebkit_resourcerequest, nkwebkit_resourceresponse, nkwebkit_securityorigin, nkwebkit_sha1, nkwebkit_symbolset, nkwebkit_usercontenturlpatternhosts, nkwebkit_usermediapermissionrequest, nkwebkit_webcoredump, nkwebkit_webcoregeometry, nkwebkit_webcoreparsers, nkwebkit_webcoreprocess, nkwebkit_webcoreprocessidentifier, nkwebkit_webcoreviewport, nkwebkit_wtf, nkwebkit_wtfbitvector, nkwebkit_wtflanguage, nkwebkit_wtflogger, nkwebkit_wtftext, nkwebkit_wtftext_allocation and nkwebkit_wtfvalues.
  • tools/check_conventions.py --base upstream/main on the committed head 854b936dec: all checks pass. review-tools/sig_users.py HEAD --build on the merged tree: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,948 open pull requests: 93 share files or exports with the branch, and none shares an export or a new file. Of the ones it could compare, three have a conflicting line, all in docs/dev/debt/libSceNKWebKit.md: #16853 and #16901 on both the debt entry (line 32 in the comparison base) and the inventory count sentence (line 111), and #17726 on the count sentence alone; whichever lands first makes the others recount it. The run failed closed (exit 2) on 61 pull requests that conflict with main themselves and compared none of them. All 61 were then checked by hand at this head: every added and removed line of each diff searched for _ZN7WebCore7Process10identifierEv, the mangled setIdentifier name and the NID nyPJWvkvO0A. None of the three appears in any of them, and every diff was fetched.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 8da3f52c51 (main 6719b01bf3 merged in):

  • A third merge of the same shape: the count sentence was the only conflict, and the count is derived from the merged tree rather than taken from a side. This branch said 6290, main 6719b01bf3 says 6275, and both rules give 6269 on the merged tree: 8770 NotImplemented_nid_no_patch calls in Export.cpp (8770 - 2501) and 6276 inventory data rows (the count plus 7). The same two rules give 6270 on main 6719b01bf3 (8771 calls, 6277 rows), five below the 6275 its count line states, so the derived number is one below main's tree, for the one export whose row this pull request removes, and six below the stale text.
  • 54 of 54 pass, none Not Run (100% tests passed, 0 tests failed out of 54), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built.
  • tools/check_conventions.py --base upstream/main on the committed head 8da3f52c51: all checks pass. review-tools/sig_users.py HEAD --build on the merged tree: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,937 open pull requests: 89 share files or exports with the branch. Of the ones it could compare, six have a conflicting line, all in docs/dev/debt/libSceNKWebKit.md and nowhere else: #16853 and #16901 on both the debt entry (line 32 in the comparison base) and the inventory count sentence (line 111), and #15672, #16508, #16890 and #17726 on the count sentence alone; whichever lands first makes the others recount it. None shares an export or a new file. The run failed closed (exit 2) on 59 pull requests that conflict with main themselves and compared none of them. All 59 were then checked by hand at this head: every added and removed line of each diff searched for _ZN7WebCore7Process10identifierEv, the mangled setIdentifier name and the NID nyPJWvkvO0A. None of the three appears in any of them, and every diff was fetched.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 760993c7f1 (main 364ceeba2f merged in):

  • main moved again within the hour (our #16316 merged into it, which is what lowered the inventory count by thirteen), so this is another merge of the same shape: the count sentence was the only conflict, and the count is derived from the merged tree rather than taken from a side. This branch said 6303, main 364ceeba2f said 6291, and both rules give 6290: the merged Export.cpp holds 8791 NotImplemented_nid_no_patch calls (8791 - 2501), and the merged inventory table has 6297 data rows, the count plus 7. On main 364ceeba2f the same rules give 6291 (8792 - 2501). One below main, for the one export whose row this pull request removes.
  • 50 of 50 pass, none Not Run (100% tests passed, 0 tests failed out of 50), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built.
  • tools/check_conventions.py --base upstream/main on the committed head 760993c7f1: all checks pass. review-tools/sig_users.py HEAD --build on the merged tree: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,961 open pull requests: 87 share files or exports with the branch. Of the ones it could compare, three have a conflicting line, all in docs/dev/debt/libSceNKWebKit.md and nowhere else: #16853 and #16901 on both the debt entry (line 29 in the comparison base) and the inventory count sentence (line 104), and #17726 on the count sentence alone; whichever lands first makes the others recount it. None shares an export or a new file. The run failed closed (exit 2) on 65 pull requests that conflict with main themselves and compared none of them. All 65 were then checked by hand at this head: every added and removed line of each diff searched for _ZN7WebCore7Process10identifierEv, the mangled setIdentifier name and the NID nyPJWvkvO0A. None of the three appears in any of them, and every diff was fetched.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 95705962ba (main b673b14c39 merged in):

  • The inventory count sentence was again the only conflict, and the count is derived from the merged tree rather than taken from a side: this branch said 6310, main b673b14c39 said 6304, and both rules give 6303. The merged Export.cpp holds 8804 NotImplemented_nid_no_patch calls (8804 - 2501), and the merged inventory table has 6310 data rows, the count plus 7. On main b673b14c39 the same rules give 6304 (8805 - 2501). One below main, for the one export whose row this pull request removes.
  • 50 of 50 pass, none Not Run (100% tests passed, 0 tests failed out of 50), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built.
  • tools/check_conventions.py --base upstream/main on the committed head 95705962ba: all checks pass. review-tools/sig_users.py HEAD --build on the merged tree: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,953 open pull requests: 85 share files or exports with the branch. Of the ones it could compare, six have a conflicting line in docs/dev/debt/libSceNKWebKit.md, and in every case only there: #16853 and #16901 on both the debt entry (line 29 in the comparison base) and the inventory count sentence (line 103), and #15891, #16453, #17726 and our own #16316 on the count sentence alone; whichever lands first makes the others recount it. None of them shares an export or a new file. The run failed closed (exit 2) on 63 pull requests that conflict with main themselves and compared none of them. All 63 were then checked by hand at this head: every added and removed line of each diff searched for _ZN7WebCore7Process10identifierEv, the mangled setIdentifier name and the NID nyPJWvkvO0A. None of the three appears in any of them, and every diff was fetched (none refused by GitHub this time).

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 5318c527d0 (main a26b7827e1 merged in):

  • The inventory count sentence was again the only conflict, and the count is derived from the merged tree rather than taken from a side: this branch said 6314, main said 6311, and both rules give 6310. Export.cpp holds 8811 NotImplemented_nid_no_patch calls (8811 - 2501) and the inventory table has 6317 rows, the count plus 7. On main a26b7827e1 the same rules give 6311 (8812 - 2501; 6318 rows). One below main, for the one export whose row this PR removes.
  • 48 of 48 pass, none Not Run (100% tests passed, 0 tests failed out of 48), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built.
  • tools/check_conventions.py --base upstream/main on the committed head 5318c527d0: all checks pass. review-tools/sig_users.py HEAD --build: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,941 open pull requests: 86 share files or exports with the branch. Three of the ones it could compare have a conflicting line: #16853 and #16901 on both the debt entry and the count line, #17726 on the count line. Our own #16316 edits that same sentence as well. The run failed closed (exit 2) on 68 pull requests that conflict with main themselves and compared none of them. All 68 were then checked by hand at this head: every added and removed line of each diff searched for _ZN7WebCore7Process10identifierEv, the mangled setIdentifier name and the NID nyPJWvkvO0A. None of the three appears in any of them. #15807 is refused whole by GitHub (HTTP 406, over 20,000 lines), so it was read through the per-file patches API instead: 191 files, a patch served for all 191, clean.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 455c9e7d4a (main b4d4db7b64 merged in):

  • Another merge of the same shape, main having moved again within the hour. The inventory count sentence was the only conflict. The count is derived from the merged tree, not taken from a side - this branch said 6322, main said 6315, and both rules give 6314: Export.cpp holds 8815 NotImplemented_nid_no_patch calls (8815 - 2501) and the inventory table has 6321 rows, the count plus 7. On main b4d4db7b64 the same rules give 6315 (8816 - 2501; 6322 rows). One below main, for the one export whose row this PR removes.
  • 48 of 48 pass, none Not Run (100% tests passed, 0 tests failed out of 48), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built. The set is 48 here against 47 at the previous head: the extra one is nkwebkit_cookieutil, which main registered in between.
  • tools/check_conventions.py --base upstream/main on the committed head 455c9e7d4a: all checks pass. review-tools/sig_users.py HEAD --build: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,947 open pull requests: 85 share files or exports with the branch. Two of the ones it could compare have conflicting lines, on the debt entry and on the count line: #16853 and #16901. Our own #16316 edits the same count sentence as well, so whichever of the two lands first makes the other recount it. The run failed closed (exit 2) on 70 pull requests that conflict with main themselves; those were not compared line by line and their diffs were not re-searched at this head: for those 70, overlap is not verified.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head 6327675402 (main d5d50455f9 merged in):

  • The merge conflicted in docs/dev/debt/libSceNKWebKit.md only, on the inventory count sentence. It was resolved by deriving the count on the merged tree rather than taking either side: the branch said 6325, main said 6323, and both rules give 6322 on the merged tree. Export.cpp has 8823 NotImplemented_nid_no_patch calls, 8823 - 2501 = 6322, the same offset main carries (8824 - 2501 = 6323 at d5d50455f9); the inventory table has 6329 rows, the count plus 7 (6330 for 6323 on main). One below main, for the one export whose row this PR removes. Export.cpp and include/InventoryExports.hpp merged without a conflict.
  • 47 of 47 pass, none Not Run (100% tests passed, 0 tests failed out of 47), with every executable behind the nkwebkit|nk_webkit tests rebuilt at this head and the libSceNKWebKit library target built.
  • tools/check_conventions.py --base upstream/main on the committed head 6327675402: all checks pass. review-tools/sig_users.py HEAD --build: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its three users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at this head, against 1,953 open pull requests: 85 share files or exports with the branch. Among those it could compare, one has a conflicting line: #16901, which adds a debt entry where this branch adds its own, at line 29 of docs/dev/debt/libSceNKWebKit.md in the comparison base (the WTF::Logger bullet there). The run failed closed (exit 2) on 68 pull requests that conflict with main themselves. Those 68 were not compared line by line, and their diffs were not re-searched at this head: for them, overlap is not verified. The searches at the two earlier heads below found neither export, their NIDs nor the new helper in any of the ones they covered. Whichever of these lands second recounts the sentence.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head efb2d7463e (main 3d61c0b24f merged in):

  • The merge conflicted in docs/dev/debt/libSceNKWebKit.md only, on the inventory count sentence, which main had lowered to 6334. main 3d61c0b24f has 8835 NotImplemented_nid_no_patch calls in Export.cpp for its 6334, the same offset of 2501; the merged tree has 8834: 8834 - 2501 = 6333, one below main for the one export with a row. The merged inventory table has 6340 rows, the count plus 7, the same offset the rows have on main (6341 for 6334) and at the merge base (6366 for 6359). Export.cpp and include/InventoryExports.hpp merged without a conflict, and git merge-tree --write-tree against upstream/main 3d61c0b24f is clean.
  • The branch's other added and removed lines against main are the same as at a48fe5ce1b; the mutation probes below were not repeated.
  • 46 of 46 pass, none Not Run (100% tests passed, 0 tests failed out of 46), with the 45 test executables rebuilt at this head: the nkwebkit_* and guest_nkwebkit_* tests (main's new nkwebkit_usercontenturlpatternhosts included) and public_headers. The libSceNKWebKit library target builds too.
  • tools/check_conventions.py --base upstream/main on the committed head efb2d7463e: all checks pass. review-tools/sig_users.py HEAD --build: the one changed declaration is identifier(); 4 files name it, none outside this branch's own changes, and its users (libSceNKWebKit, nkwebkit_webcoreprocess_tests, nkwebkit_webcoreprocessidentifier_tests) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at efb2d7463e, against 1,975 open pull requests: 88 share files with the branch, 2 have conflicting lines (#16853 and #16901, both on docs/dev/debt/libSceNKWebKit.md line 25, where this branch adds its entry), and none shares an export or a new file. The run failed closed (exit 2) on 71 that conflict with main themselves and were not compared line by line; I searched the added and removed lines of 70 of those diffs for the two exports, their NIDs and the new helper and found none. GitHub refuses #15807's whole diff (HTTP 406, over 20,000 lines), so for it I searched the patches of its two libSceNKWebKit files from the pull request files API (its files), which name none of them. Whichever lands second recounts the sentence.

Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head a48fe5ce1b (main 286b14d2f7 merged in):

  • The merge conflicted in docs/dev/debt/libSceNKWebKit.md only: main added its WTF::Logger entry where this branch adds its WebCore::Process entry, and both are kept.
  • A follow-up commit removes the _ZN7WebCore7Process10identifierEv row from the throwing inventory and recounts it, which earlier heads of this branch had missed: 8859 calls − 2501 = 6358, one below main for the one export with a row.
  • The branch's other added and removed lines against main are the same as at 56b1d33791; the mutation probes below were not repeated.
  • 45 of 45 pass, none Not Run, with the 44 test executables rebuilt at this head: the nkwebkit_* and guest_nkwebkit_* tests and public_headers. The libSceNKWebKit library target builds too.
  • tools/check_conventions.py --base upstream/main on the committed head a48fe5ce1b: all checks pass. review-tools/sig_users.py HEAD --build: the one changed declaration is identifier(); no file outside this branch's own changes names it, and its users (libSceNKWebKit and the two tests above) build.
  • tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8 at a48fe5ce1b, against 1,994 open pull requests: 13 have conflicting lines, all in docs/dev/debt/libSceNKWebKit.md (the inventory count sentence on line 93 on main, and for five of them also line 25 or lines 25-26, where this branch adds its entry), and none shares an export or a new file. The run failed closed (exit 2) on 54 that conflict with main and were not compared line by line. I searched the added and removed lines of those 54 for these two exports, their NIDs and the new helper and found none. For #15807 GitHub refuses the whole diff, and the search covered its two libSceNKWebKit files only. Whichever lands second recounts the sentence.

Windows 11 Pro, WinLibs GCC, Release, on this branch (56b1d33791, based on main 1ff0fe98aa):

  • nkwebkit_webcoreprocess (a set before the first query is kept, and a later set replaces it), nkwebkit_webcoreprocessidentifier (the first query returns 1, stays 1, and a later set replaces it) and the neighbouring nkwebkit_palsessionid: 3 of 3 pass.
  • public_headers: passes.
  • Negative control: on main, identifier() is a NotImplemented_nid_no_patch stub (core/libs/prx/libSceNKWebKit/Export.cpp:30249 there) and setIdentifier is undeclared, which this PR's tests cannot pass or build against. Mutation probes on this branch, rebuilt each time:
    • identifier() ignoring an earlier set: nkwebkit_webcoreprocess fails.
    • generating on every call: both tests fail.
    • setIdentifier not storing: both tests fail.
  • python3 tools/check_conventions.py --base upstream/main on the committed head: all checks passed.
  • python3 tools/pr_overlap.py --branch feat/nkwebkit-process-identifier: no line conflicts. #13486 is listed for the same export; GitHub's file list for its head 0bde10d243 is three relinker files, none in libSceNKWebKit. 80 other libSceNKWebKit pull requests conflict with main and could not be compared. A search of open pull requests for Process::identifier, setIdentifier, ProcessIdentifier and ObjectIdentifier finds none that implements these.

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
  • 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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5189625846 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/16386). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-06T14:46:33Z. --- ### What `WebCore::Process::identifier()` threw, and `WebCore::Process::setIdentifier` (NID `B6CB7QLhsdk`) was not declared. This implements both as firmware 13.42's `libSceNKWebKit.sprx` does: - `identifier()` runs a one-time initialisation. If no identifier has been stored by then, it takes the next value of the object-identifier counter. It returns the stored value on every call. - `setIdentifier(identifier)` stores the value at any time, before or after the first `identifier()`. - The counter is a new library-internal helper (`src/WtfObjectIdentifier.cpp`). In the module the same counter also feeds the `HistoryItem` constructors, seven other exports and internal code. None of those is implemented yet, and they can use this helper when they are. The setter's name was recovered from its NID: `_ZN7WebCore7Process13setIdentifierEN3WTF23ObjectIdentifierGenericINS_21ProcessIdentifierTypeENS1_38ObjectIdentifierMainThreadAccessTraitsEEE` hashes to `B6CB7QLhsdk`, which is a defined export at `0x2e3bb0`. The identifier is 8 bytes, passed in `rdi` (`0x2e3bc0` below) and returned in `rax` (`0x20717e`); both exports use `std::uint64_t`. **Source.** `system_ex/common_ex/lib/libSceNKWebKit.sprx`, firmware 13.42, SHA-256 `e63acdc164592330a287cf6914c265336b27a357098a449c1609f8f82e104409`. This was read from disassembly and not run, and nothing was measured on a console. `identifier()` at `0x207100`, read to its `ret` and its three `ud2` arms: ``` 207126: call 0x2ad65d0 ; __std_init_once_begin_initialize_clr(&once 0x338b838, 0, &pending, 0) 207133: cmpl $0x0,-0x14(%rbp) ; je 0x20717e ; already initialised: skip to the load 207139: cmpb $0x0,0x338b848 ; jne 0x20716a ; a value was stored: keep it 207142: cmpb $0x1,0x3369ef8 ; je 0x207195 ; generation protection: crash (not modelled, see below) 20714b: mov 0x336f0c8,%rax ; inc %rax ; mov %rax,0x336f0c8 ; next object identifier 207152: movb $0x1,0x338b848 ; 207163: mov %rax,0x338b840 207175: call 0x2ad65f0 ; __std_init_once_complete_clr 20717e: mov 0x338b840,%rax ; ... ret ; return the stored value ``` `setIdentifier` at `0x2e3bb0`, the whole function: ``` 2e3bb0: cmpb $0x0,0x338b848 ; jne 0x2e3bc0 2e3bb9: movb $0x1,0x338b848 2e3bc0: mov %rdi,0x338b840 ; ret ``` The counter at `0x336f0c8` and the value at `0x338b840` lie past the file-backed end of their `LOAD` segment, so both start at 0, and the first generated identifier is 1. The import names come from their GOT slots (`0x334e318`, `0x334e328`). **Debt.** In `docs/dev/debt/libSceNKWebKit.md`, `identifier()` leaves the throwing inventory of "Additional callable exports" and its count becomes 6186 with `main` `9163fe9677` merged in, derived from the merged tree by resolving every inventory row to its symbol in `Export.cpp` and counting the rows whose symbol throws: 6193 data rows, 6186 throwing, 7 implemented in other translation units. The count line of `main` `9163fe9677` reads 6187. `setIdentifier` had no inventory row. One new entry: - The generation-protection check is not modelled. A scan of the module's executable segment finds that byte only in three `cmpb` instructions (`0x207142`, `0x7300c4`, `0x7aee62`) and in no store by address; what sets it is unknown. - Identifiers are unique only among implemented callers of the counter. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `5c8f17e06b` (`main` `9163fe9677` merged in): - A fifth merge of the same shape: the count sentence was the only conflict, and the count is **derived from the merged tree** rather than taken from a side. This branch said 6193, `main` `9163fe9677` says 6187, and the merged tree gives **6186**: the merged table has 6193 data rows, of which 6186 resolve to a throwing symbol in `Export.cpp` and 7 are implemented in other translation units of the library (the same seven named under the previous head below). That is one below the 6187 in `main`'s count line, for the one export whose row this pull request removes. The derivation was not repeated on `main` `9163fe9677` itself this time. - **56 of 56 pass, none Not Run** (100% tests passed, 0 tests failed out of 56), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built. The set is the 55 tests listed under the previous head plus `nkwebkit_contenttype`, which `main` registered in between. `main` also added the `3rdparty/libxml2` and `3rdparty/libpsl` submodules, which the library's build now needs. - `tools/check_conventions.py --base upstream/main` on the committed head `5c8f17e06b`: all checks pass. `review-tools/sig_users.py HEAD --build` on the merged tree: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,991 open pull requests: 100 share files or exports with the branch, and none shares an export or a new file. Of the ones it could compare, five have a conflicting line, all in `docs/dev/debt/libSceNKWebKit.md`: [#16853](https://github.com/boykopovar/AnyPS5/pull/16853) and [#16901](https://github.com/boykopovar/AnyPS5/pull/16901) on both the debt entry (line 34 in the comparison base) and the inventory count sentence (line 113), and [#15515](https://github.com/boykopovar/AnyPS5/pull/15515), [#15672](https://github.com/boykopovar/AnyPS5/pull/15672) and [#17726](https://github.com/boykopovar/AnyPS5/pull/17726) on the count sentence alone; whichever lands first makes the others recount it. The run failed closed (exit 2) on 52 pull requests that conflict with `main` themselves and compared none of them. **All 52 were then checked by hand at this head**: every added and removed line of each diff searched for `_ZN7WebCore7Process10identifierEv`, the mangled `setIdentifier` name and the NID `nyPJWvkvO0A`. None of the three appears in any of them, and every diff was fetched. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `854b936dec` (`main` `31b4aa91e8` merged in): - A fourth merge of the same shape: the count sentence was the only conflict, and the count is **derived from the merged tree** rather than taken from a side. This branch said 6269, `main` `31b4aa91e8` says 6194, and the merged tree gives **6193**. The derivation is now exact instead of an offset: every row of the inventory table is resolved to its symbol in `Export.cpp` (by the NID its `APS5_EXPORT` entry carries, else by name) and counted only when that symbol's body calls `NotImplemented_nid_no_patch`. The merged table has 6200 data rows, of which 6193 resolve to a throwing symbol and 7 are implemented in other translation units of the library (`WKURLRequestCopyFirstPartyForCookies`, `WKURLRequestCopyHTTPMethod`, `WKURLRequestCopySettingHTTPBody`, `WKURLRequestCopyURL`, `WKURLRequestCreateWithWKURL`, `_ZNK3WTF3URL17lastPathComponentEv`, `_ZNK3WTF3URL24strippedForUseAsReferrerEv`). The same derivation gives 6194 on `main` `31b4aa91e8`, which is what its own count line reads, so the merged number is one below `main`'s, for the one export whose row this pull request removes. - The earlier bullets' first rule, `NotImplemented_nid_no_patch` calls in `Export.cpp` minus 2501, no longer holds: on `main` `31b4aa91e8` it gives 6192 against the table's 6194, because the subtrahend stands for calls outside the inventory and `main` has changed how many of those there are. It is replaced by the derivation above, which reads both numbers off the tree. That derivation reproduces the 6269 this description already states for the previous head `8da3f52c51`; the heads before that were not re-derived. - **55 of 55 pass, none Not Run** (100% tests passed, 0 tests failed out of 55), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built: `guest_nkwebkit_dates`, `guest_nkwebkit_numbers`, `guest_nkwebkit_urls`, `nkwebkit_argumentreturn`, `nkwebkit_base`, `nkwebkit_bmallocfreelist`, `nkwebkit_cachecontrol`, `nkwebkit_concurrentptrhashset`, `nkwebkit_config`, `nkwebkit_connection`, `nkwebkit_constants`, `nkwebkit_contextsettings`, `nkwebkit_contexttermination`, `nkwebkit_cookieutil`, `nkwebkit_credentialbase`, `nkwebkit_diagnosticloggingkeys`, `nkwebkit_fastbitvector`, `nkwebkit_fieldsetters`, `nkwebkit_forwarding`, `nkwebkit_historyitem`, `nkwebkit_htmlinteger`, `nkwebkit_httpheaderfield`, `nkwebkit_httpheadermap`, `nkwebkit_inspectoridentifiersfactory`, `nkwebkit_jsc`, `nkwebkit_jsonimpl`, `nkwebkit_mainthread`, `nkwebkit_mediatime`, `nkwebkit_mimetyperegistry`, `nkwebkit_mockmediadevices`, `nkwebkit_noops`, `nkwebkit_palsessionid`, `nkwebkit_parsedcontentrange`, `nkwebkit_preferences`, `nkwebkit_regiongeometry`, `nkwebkit_resourcerequest`, `nkwebkit_resourceresponse`, `nkwebkit_securityorigin`, `nkwebkit_sha1`, `nkwebkit_symbolset`, `nkwebkit_usercontenturlpatternhosts`, `nkwebkit_usermediapermissionrequest`, `nkwebkit_webcoredump`, `nkwebkit_webcoregeometry`, `nkwebkit_webcoreparsers`, `nkwebkit_webcoreprocess`, `nkwebkit_webcoreprocessidentifier`, `nkwebkit_webcoreviewport`, `nkwebkit_wtf`, `nkwebkit_wtfbitvector`, `nkwebkit_wtflanguage`, `nkwebkit_wtflogger`, `nkwebkit_wtftext`, `nkwebkit_wtftext_allocation` and `nkwebkit_wtfvalues`. - `tools/check_conventions.py --base upstream/main` on the committed head `854b936dec`: all checks pass. `review-tools/sig_users.py HEAD --build` on the merged tree: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,948 open pull requests: 93 share files or exports with the branch, and none shares an export or a new file. Of the ones it could compare, three have a conflicting line, all in `docs/dev/debt/libSceNKWebKit.md`: [#16853](https://github.com/boykopovar/AnyPS5/pull/16853) and [#16901](https://github.com/boykopovar/AnyPS5/pull/16901) on both the debt entry (line 32 in the comparison base) and the inventory count sentence (line 111), and [#17726](https://github.com/boykopovar/AnyPS5/pull/17726) on the count sentence alone; whichever lands first makes the others recount it. The run failed closed (exit 2) on 61 pull requests that conflict with `main` themselves and compared none of them. **All 61 were then checked by hand at this head**: every added and removed line of each diff searched for `_ZN7WebCore7Process10identifierEv`, the mangled `setIdentifier` name and the NID `nyPJWvkvO0A`. None of the three appears in any of them, and every diff was fetched. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `8da3f52c51` (`main` `6719b01bf3` merged in): - A third merge of the same shape: the count sentence was the only conflict, and the count is **derived from the merged tree** rather than taken from a side. This branch said 6290, `main` `6719b01bf3` says 6275, and both rules give **6269** on the merged tree: 8770 `NotImplemented_nid_no_patch` calls in `Export.cpp` (8770 - 2501) and 6276 inventory data rows (the count plus 7). The same two rules give 6270 on `main` `6719b01bf3` (8771 calls, 6277 rows), five below the 6275 its count line states, so the derived number is one below `main`'s tree, for the one export whose row this pull request removes, and six below the stale text. - **54 of 54 pass, none Not Run** (100% tests passed, 0 tests failed out of 54), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built. - `tools/check_conventions.py --base upstream/main` on the committed head `8da3f52c51`: all checks pass. `review-tools/sig_users.py HEAD --build` on the merged tree: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,937 open pull requests: 89 share files or exports with the branch. Of the ones it could compare, six have a conflicting line, all in `docs/dev/debt/libSceNKWebKit.md` and nowhere else: [#16853](https://github.com/boykopovar/AnyPS5/pull/16853) and [#16901](https://github.com/boykopovar/AnyPS5/pull/16901) on both the debt entry (line 32 in the comparison base) and the inventory count sentence (line 111), and [#15672](https://github.com/boykopovar/AnyPS5/pull/15672), [#16508](https://github.com/boykopovar/AnyPS5/pull/16508), [#16890](https://github.com/boykopovar/AnyPS5/pull/16890) and [#17726](https://github.com/boykopovar/AnyPS5/pull/17726) on the count sentence alone; whichever lands first makes the others recount it. None shares an export or a new file. The run failed closed (exit 2) on 59 pull requests that conflict with `main` themselves and compared none of them. **All 59 were then checked by hand at this head**: every added and removed line of each diff searched for `_ZN7WebCore7Process10identifierEv`, the mangled `setIdentifier` name and the NID `nyPJWvkvO0A`. None of the three appears in any of them, and every diff was fetched. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `760993c7f1` (`main` `364ceeba2f` merged in): - `main` moved again within the hour (our [#16316](https://github.com/boykopovar/AnyPS5/pull/16316) merged into it, which is what lowered the inventory count by thirteen), so this is another merge of the same shape: the count sentence was the only conflict, and the count is **derived from the merged tree** rather than taken from a side. This branch said 6303, `main` `364ceeba2f` said 6291, and both rules give **6290**: the merged `Export.cpp` holds 8791 `NotImplemented_nid_no_patch` calls (8791 - 2501), and the merged inventory table has 6297 data rows, the count plus 7. On `main` `364ceeba2f` the same rules give 6291 (8792 - 2501). One below `main`, for the one export whose row this pull request removes. - **50 of 50 pass, none Not Run** (100% tests passed, 0 tests failed out of 50), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built. - `tools/check_conventions.py --base upstream/main` on the committed head `760993c7f1`: all checks pass. `review-tools/sig_users.py HEAD --build` on the merged tree: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,961 open pull requests: 87 share files or exports with the branch. Of the ones it could compare, three have a conflicting line, all in `docs/dev/debt/libSceNKWebKit.md` and nowhere else: [#16853](https://github.com/boykopovar/AnyPS5/pull/16853) and [#16901](https://github.com/boykopovar/AnyPS5/pull/16901) on both the debt entry (line 29 in the comparison base) and the inventory count sentence (line 104), and [#17726](https://github.com/boykopovar/AnyPS5/pull/17726) on the count sentence alone; whichever lands first makes the others recount it. None shares an export or a new file. The run failed closed (exit 2) on 65 pull requests that conflict with `main` themselves and compared none of them. **All 65 were then checked by hand at this head**: every added and removed line of each diff searched for `_ZN7WebCore7Process10identifierEv`, the mangled `setIdentifier` name and the NID `nyPJWvkvO0A`. None of the three appears in any of them, and every diff was fetched. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `95705962ba` (`main` `b673b14c39` merged in): - The inventory count sentence was again the only conflict, and the count is **derived from the merged tree** rather than taken from a side: this branch said 6310, `main` `b673b14c39` said 6304, and both rules give **6303**. The merged `Export.cpp` holds 8804 `NotImplemented_nid_no_patch` calls (8804 - 2501), and the merged inventory table has 6310 data rows, the count plus 7. On `main` `b673b14c39` the same rules give 6304 (8805 - 2501). One below `main`, for the one export whose row this pull request removes. - **50 of 50 pass, none Not Run** (100% tests passed, 0 tests failed out of 50), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built. - `tools/check_conventions.py --base upstream/main` on the committed head `95705962ba`: all checks pass. `review-tools/sig_users.py HEAD --build` on the merged tree: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,953 open pull requests: 85 share files or exports with the branch. Of the ones it could compare, six have a conflicting line in `docs/dev/debt/libSceNKWebKit.md`, and in every case only there: [#16853](https://github.com/boykopovar/AnyPS5/pull/16853) and [#16901](https://github.com/boykopovar/AnyPS5/pull/16901) on both the debt entry (line 29 in the comparison base) and the inventory count sentence (line 103), and [#15891](https://github.com/boykopovar/AnyPS5/pull/15891), [#16453](https://github.com/boykopovar/AnyPS5/pull/16453), [#17726](https://github.com/boykopovar/AnyPS5/pull/17726) and our own [#16316](https://github.com/boykopovar/AnyPS5/pull/16316) on the count sentence alone; whichever lands first makes the others recount it. None of them shares an export or a new file. The run failed closed (exit 2) on 63 pull requests that conflict with `main` themselves and compared none of them. **All 63 were then checked by hand at this head**: every added and removed line of each diff searched for `_ZN7WebCore7Process10identifierEv`, the mangled `setIdentifier` name and the NID `nyPJWvkvO0A`. None of the three appears in any of them, and every diff was fetched (none refused by GitHub this time). Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `5318c527d0` (`main` `a26b7827e1` merged in): - The inventory count sentence was again the only conflict, and the count is **derived from the merged tree** rather than taken from a side: this branch said 6314, `main` said 6311, and both rules give **6310**. `Export.cpp` holds 8811 `NotImplemented_nid_no_patch` calls (8811 - 2501) and the inventory table has 6317 rows, the count plus 7. On `main` `a26b7827e1` the same rules give 6311 (8812 - 2501; 6318 rows). One below `main`, for the one export whose row this PR removes. - **48 of 48 pass, none Not Run** (100% tests passed, 0 tests failed out of 48), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built. - `tools/check_conventions.py --base upstream/main` on the committed head `5318c527d0`: all checks pass. `review-tools/sig_users.py HEAD --build`: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,941 open pull requests: 86 share files or exports with the branch. Three of the ones it could compare have a conflicting line: [#16853](https://github.com/boykopovar/AnyPS5/pull/16853) and [#16901](https://github.com/boykopovar/AnyPS5/pull/16901) on both the debt entry and the count line, [#17726](https://github.com/boykopovar/AnyPS5/pull/17726) on the count line. Our own [#16316](https://github.com/boykopovar/AnyPS5/pull/16316) edits that same sentence as well. The run failed closed (exit 2) on 68 pull requests that conflict with `main` themselves and compared none of them. **All 68 were then checked by hand at this head**: every added and removed line of each diff searched for `_ZN7WebCore7Process10identifierEv`, the mangled `setIdentifier` name and the NID `nyPJWvkvO0A`. None of the three appears in any of them. [#15807](https://github.com/boykopovar/AnyPS5/pull/15807) is refused whole by GitHub (HTTP 406, over 20,000 lines), so it was read through the per-file patches API instead: 191 files, a patch served for all 191, clean. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `455c9e7d4a` (`main` `b4d4db7b64` merged in): - Another merge of the same shape, `main` having moved again within the hour. The inventory count sentence was the only conflict. The count is **derived from the merged tree**, not taken from a side - this branch said 6322, `main` said 6315, and both rules give **6314**: `Export.cpp` holds 8815 `NotImplemented_nid_no_patch` calls (8815 - 2501) and the inventory table has 6321 rows, the count plus 7. On `main` `b4d4db7b64` the same rules give 6315 (8816 - 2501; 6322 rows). One below `main`, for the one export whose row this PR removes. - **48 of 48 pass, none Not Run** (100% tests passed, 0 tests failed out of 48), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built. The set is 48 here against 47 at the previous head: the extra one is `nkwebkit_cookieutil`, which `main` registered in between. - `tools/check_conventions.py --base upstream/main` on the committed head `455c9e7d4a`: all checks pass. `review-tools/sig_users.py HEAD --build`: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,947 open pull requests: 85 share files or exports with the branch. Two of the ones it could compare have conflicting lines, on the debt entry and on the count line: [#16853](https://github.com/boykopovar/AnyPS5/pull/16853) and [#16901](https://github.com/boykopovar/AnyPS5/pull/16901). Our own [#16316](https://github.com/boykopovar/AnyPS5/pull/16316) edits the same count sentence as well, so whichever of the two lands first makes the other recount it. The run failed closed (exit 2) on 70 pull requests that conflict with `main` themselves; those were not compared line by line and their diffs were not re-searched at this head: for those 70, overlap is **not verified**. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `6327675402` (`main` `d5d50455f9` merged in): - The merge conflicted in `docs/dev/debt/libSceNKWebKit.md` only, on the inventory count sentence. It was resolved by **deriving** the count on the merged tree rather than taking either side: the branch said 6325, `main` said 6323, and both rules give **6322** on the merged tree. `Export.cpp` has 8823 `NotImplemented_nid_no_patch` calls, 8823 - 2501 = 6322, the same offset `main` carries (8824 - 2501 = 6323 at `d5d50455f9`); the inventory table has 6329 rows, the count plus 7 (6330 for 6323 on `main`). One below `main`, for the one export whose row this PR removes. `Export.cpp` and `include/InventoryExports.hpp` merged without a conflict. - **47 of 47 pass, none Not Run** (100% tests passed, 0 tests failed out of 47), with every executable behind the `nkwebkit|nk_webkit` tests rebuilt at this head and the `libSceNKWebKit` library target built. - `tools/check_conventions.py --base upstream/main` on the committed head `6327675402`: all checks pass. `review-tools/sig_users.py HEAD --build`: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its three users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at this head, against 1,953 open pull requests: 85 share files or exports with the branch. Among those it could compare, **one has a conflicting line**: [#16901](https://github.com/boykopovar/AnyPS5/pull/16901), which adds a debt entry where this branch adds its own, at [line 29 of `docs/dev/debt/libSceNKWebKit.md`](https://github.com/boykopovar/AnyPS5/blob/0dd2fffe3576acf91048685236cd35305c637e17/docs/dev/debt/libSceNKWebKit.md#L29) in the comparison base (the `WTF::Logger` bullet there). The run failed closed (exit 2) on **68** pull requests that conflict with `main` themselves. Those 68 were not compared line by line, and their diffs were not re-searched at this head: for them, overlap is **not verified**. The searches at the two earlier heads below found neither export, their NIDs nor the new helper in any of the ones they covered. Whichever of these lands second recounts the sentence. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `efb2d7463e` (`main` `3d61c0b24f` merged in): - The merge conflicted in `docs/dev/debt/libSceNKWebKit.md` only, on the inventory count sentence, which `main` had lowered to 6334. `main` `3d61c0b24f` has 8835 `NotImplemented_nid_no_patch` calls in `Export.cpp` for its 6334, the same offset of 2501; the merged tree has 8834: 8834 - 2501 = **6333**, one below `main` for the one export with a row. The merged inventory table has 6340 rows, the count plus 7, the same offset the rows have on `main` (6341 for 6334) and at the merge base (6366 for 6359). `Export.cpp` and `include/InventoryExports.hpp` merged without a conflict, and `git merge-tree --write-tree` against `upstream/main` `3d61c0b24f` is clean. - The branch's other added and removed lines against `main` are the same as at `a48fe5ce1b`; the mutation probes below were not repeated. - **46 of 46 pass, none Not Run** (100% tests passed, 0 tests failed out of 46), with the 45 test executables rebuilt at this head: the `nkwebkit_*` and `guest_nkwebkit_*` tests (`main`'s new `nkwebkit_usercontenturlpatternhosts` included) and `public_headers`. The `libSceNKWebKit` library target builds too. - `tools/check_conventions.py --base upstream/main` on the committed head `efb2d7463e`: all checks pass. `review-tools/sig_users.py HEAD --build`: the one changed declaration is `identifier()`; 4 files name it, none outside this branch's own changes, and its users (`libSceNKWebKit`, `nkwebkit_webcoreprocess_tests`, `nkwebkit_webcoreprocessidentifier_tests`) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at `efb2d7463e`, against 1,975 open pull requests: 88 share files with the branch, 2 have conflicting lines (#16853 and #16901, both on `docs/dev/debt/libSceNKWebKit.md` line 25, where this branch adds its entry), and none shares an export or a new file. The run failed closed (exit 2) on 71 that conflict with `main` themselves and were not compared line by line; I searched the added and removed lines of 70 of those diffs for the two exports, their NIDs and the new helper and found none. GitHub refuses #15807's whole diff (HTTP 406, over 20,000 lines), so for it I searched the patches of its two `libSceNKWebKit` files from the pull request files API ([its files](https://github.com/boykopovar/AnyPS5/pull/15807/files)), which name none of them. Whichever lands second recounts the sentence. Windows 11 Pro 10.0.26300, WinLibs GCC, Release, head `a48fe5ce1b` (`main` `286b14d2f7` merged in): - The merge conflicted in `docs/dev/debt/libSceNKWebKit.md` only: `main` added its `WTF::Logger` entry where this branch adds its `WebCore::Process` entry, and both are kept. - A follow-up commit removes the `_ZN7WebCore7Process10identifierEv` row from the throwing inventory and recounts it, which earlier heads of this branch had missed: 8859 calls − 2501 = **6358**, one below `main` for the one export with a row. - The branch's other added and removed lines against `main` are the same as at `56b1d33791`; the mutation probes below were not repeated. - **45 of 45 pass, none Not Run**, with the 44 test executables rebuilt at this head: the `nkwebkit_*` and `guest_nkwebkit_*` tests and `public_headers`. The `libSceNKWebKit` library target builds too. - `tools/check_conventions.py --base upstream/main` on the committed head `a48fe5ce1b`: all checks pass. `review-tools/sig_users.py HEAD --build`: the one changed declaration is `identifier()`; no file outside this branch's own changes names it, and its users (`libSceNKWebKit` and the two tests above) build. - `tools/pr_overlap.py --branch feat/nkwebkit-process-identifier --jobs 8` at `a48fe5ce1b`, against 1,994 open pull requests: 13 have conflicting lines, all in `docs/dev/debt/libSceNKWebKit.md` (the inventory count sentence on line 93 on `main`, and for five of them also line 25 or lines 25-26, where this branch adds its entry), and none shares an export or a new file. The run failed closed (exit 2) on 54 that conflict with `main` and were not compared line by line. I searched the added and removed lines of those 54 for these two exports, their NIDs and the new helper and found none. For #15807 GitHub refuses the whole diff, and the search covered its two `libSceNKWebKit` files only. Whichever lands second recounts the sentence. Windows 11 Pro, WinLibs GCC, Release, on this branch (`56b1d33791`, based on `main` `1ff0fe98aa`): - `nkwebkit_webcoreprocess` (a set before the first query is kept, and a later set replaces it), `nkwebkit_webcoreprocessidentifier` (the first query returns 1, stays 1, and a later set replaces it) and the neighbouring `nkwebkit_palsessionid`: 3 of 3 pass. - `public_headers`: passes. - Negative control: on `main`, `identifier()` is a `NotImplemented_nid_no_patch` stub (`core/libs/prx/libSceNKWebKit/Export.cpp:30249` there) and `setIdentifier` is undeclared, which this PR's tests cannot pass or build against. Mutation probes on this branch, rebuilt each time: - `identifier()` ignoring an earlier set: `nkwebkit_webcoreprocess` fails. - generating on every call: both tests fail. - `setIdentifier` not storing: both tests fail. - `python3 tools/check_conventions.py --base upstream/main` on the committed head: all checks passed. - `python3 tools/pr_overlap.py --branch feat/nkwebkit-process-identifier`: no line conflicts. #13486 is listed for the same export; GitHub's file list for its head `0bde10d243` is three relinker files, none in `libSceNKWebKit`. 80 other `libSceNKWebKit` pull requests conflict with `main` and could not be compared. A search of open pull requests for `Process::identifier`, `setIdentifier`, `ProcessIdentifier` and `ObjectIdentifier` finds none that implements these. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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) - [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 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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!16386
No description provided.