feat(libSceNKWebKit): implement WTF PlayStation platform defaults #19322
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19322"
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-13T03:32:17Z.
What
Implements 9 existing throwing
WTFstubs in libSceNKWebKit with the PlayStation build of PS5-WebKit 11.x at 80f77e9.PlatformPlayStation.cmakecompilesplaystation/OSAllocatorPlayStation.cpp,text/unix/TextBreakIteratorInternalICUUnix.cppand the generic sources:OSAllocator::hintMemoryNotNeededSoon(void*, size_t): does nothing (UNUSED_PARAM(address); UNUSED_PARAM(bytes);).FileSystem::setMetadataURL: empty under!PLATFORM(MAC).FileSystem::makeSafeToUseMemoryMapForPath: returnstrueunder!PLATFORM(IOS_FAMILY).FileSystem::createTemporaryZipArchive: returns{ }, a nullString, under!PLATFORM(COCOA).bootSessionUUIDString: returnsString()outsideOS(DARWIN)(UUID.cpp:156-173).currentSearchLocaleID/currentTextBreakLocaleID: returnsetlocale(LC_MESSAGES, nullptr)when it is non-null, otherwise""and"en_us". They reuse the guest libcsetlocale_nid_postfixwith the FreeBSDLC_MESSAGESvalue 6.Thread::setCurrentThreadIsUserInitiated/setCurrentThreadIsUserInteractive: do nothing withoutHAVE(QOS_CLASSES)(Cocoa only) orOS(LINUX)(Threading.cpp:396-421).The declarations move from
InventoryExports.hppto a typedWtfPlatformDefaultsExports.hpp.Stringresults return through sret, using the existing 8-byteWtfAbi::Stringwith itsstatic_assertlayout. The debt count goes from 5950 to 5941. The debt file gets one entry: the repository libc only reportsC, so the two fallbacks cannot be reached in tests.tools/progress.pydone delta: +9.Tested
WSL2 Ubuntu, Release, Ninja, g++.
nkwebkit_wtfplatformdefaultstest. It covers null, empty and non-emptyStringarguments, unchanged argument refcounts, null sret results, and locale IDs equal toC. It calls both priority setters with 0, -1 and -15 and requiresNotImplementedCalls_nid_no_patch()to stay the same.main(the same test and header without the implementation):nkwebkit_wtfplatformdefaults (Subprocess aborted)with_ZN3WTF11OSAllocator23hintMemoryNotNeededSoonEPvm not implemented.ctest -R "^nkwebkit_(noops|wtfplatformdefaults)$"passed 2/2 on each of 3 runs.ctest -R "^public_headers": 100% passed, 65/65.a559a64ca81, an ordinary merge ofmainat82160bba912after #18538, conventions passed; doc-only conflict on the count line; count is main's stated 5949 minus this change's 9 removed stubs (5940). Main's code changes since the last merge are over 1,000 lines from this PR's hunks, so the earlier test results stand.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)🤖 Generated with Claude Code