Repository navigation
Conversation
Progress report (0eba5db → a6e114e)📈 System libraries: 26.77% (+0.03%, +13 implemented functions) ✅ 13 implemented
Changed libraries (implemented exports)
|
|
Thanks for this. Two small requests on
The inventory table still has rows for all 13 newly implemented exports ( |
d86f186 to
0e1fe1e
Compare
|
Thanks, both done in |
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
0e1fe1e to
58e3d47
Compare
58e3d47 to
003e7f5
Compare
003e7f5 to
a6e114e
Compare
What
WTF::MutexandWTF::ThreadConditionwereNotImplementedstubs, so guest WebKit code stopped at the first construction, lock or wait. All 13 exports now follow the pinned PS5 WebKit 11.xThreadingPOSIX.cpp.PlatformPlayStation.cmakebuilds that file for the PS5, so it is the pthread implementation, not the Windows one.Mutex:Mutex()and~Mutex()(both variants),lock,tryLockandunlock. It is a normal, non-recursive mutex:tryLockreturns false while the mutex is held, including from the owner;ThreadCondition:~ThreadCondition()(both variants),wait,timedWait,signalandbroadcast.timedWaitfollows the source's order:time_t, wait without a timeout;On the PS5,
pthread_mutex_tandpthread_cond_tare one pointer each, and their static initializers are null. Each object is therefore one 8-byte word, which holds a host object created on first use. Two threads racing on first use agree on one object, and the loser frees its own copy.ThreadConditionhas no exported constructor, because the guest initializes it inline, so it always starts from that null word.The debt entry records what remains:
A wait by a thread that doesn't own the mutex also throws, where the source asserts.
tools/pr_overlap.pyon this head, withmainat0eba5db30d: no other open PR changes these exports or adds the same files. For the PRs it couldn't compare because they no longer merge withmain, GitHub's file lists show none of them changing these exports either. #13992 and #15866 change nearby lines in the same files; whichever merges later keeps both sides.Tested
Debian 12, GCC 12.2, Linux 6.18, Release, at the head
a6e114efc62450eb8bf33a00dab7c18ab9ae31dc, no local changes:guest_nkwebkit_dates,guest_nkwebkit_numbers,nkwebkit_base,nkwebkit_config,nkwebkit_constants,nkwebkit_fastbitvector,nkwebkit_jsc,nkwebkit_palsessionid,nkwebkit_preferences,nkwebkit_resourceresponse,nkwebkit_webcoregeometry,nkwebkit_wtf,guest_nkwebkit_urlsandpublic_headerspass. At an earlier commit with the same patch,nkwebkit_wtfalso passed 20 repeated runs.nkwebkit_wtfcases cover:tryLockfrom the owner, from another thread and on a free mutex;signalwaking one waiter andbroadcastwaking all of them;tools/progress.py: the 13 exports count as implemented (libSceNKWebKit 1325, 1312 onmain).tools/check_conventions.pypasses.0e1fe1e7a62ff0fe1459309bebc6772fe2dd9284. It is AnyPS5'sBuildworkflow, dispatched in the author's fork withselect=true: the branch merged intomainat93dbd0f82aea684e95f15f06e7d42c0064af18cf, built onwindows-latestwith WinLibs GCC 15.2 (MinGW-w64, UCRT). None of the 672 selected tests failed; 6 AGC tests were skipped, whichcheck_skips.pyaccepts. That includes the nine NKWebKit tests,public_headersandpatched_libraries. The later rebases ontomain(now0eba5db30d8a3d03789e52e5c1a9ff853e4e33e4, after feat(libSceNKWebKit): implement WTF::mimeTypeFromDataURL and URL::stringCenterEllipsizedToLength #14479, feat(libSceNKWebKit): validate UUIDs and default URL ports #13766, feat(libSceNKWebKit): implement WKSecurityOrigin values #14925 and feat(libSceNKWebKit): implement PAL::SessionID generators #15911) changed onlydocs/dev/debt/libSceNKWebKit.md, sogit range-diffshows the code and tests under test are the same as at that run. A fork-internal pull request existed only to give the workflow a number.Not built or run: macOS. A wall-clock jump during a wait was not tested. No title or homebrew was run.
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)