feat(libSceLibcInternal): implement the remaining messages constructor forms #23867
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23867"
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 GiannisG1 on 2026-11-19T20:17:46Z.
What
#21904 implemented seven
messages<char>andmessages<wchar_t>constructors. Five other forms of the same constructors were still inventory placeholders that threw:messages<char>::messages(size_t), complete object (C1)6gCBQs1mIi4messages<char>::messages(const char*, size_t), base object (C2)qF3mHeMAHVkmessages<wchar_t>::messages(size_t), C1n4+3hznhkU4messages<wchar_t>::messages(const char*, size_t), C2DlDsyX+XsoAmessages<wchar_t>::messages(const _Locinfo&, size_t), C2DDQjbwNC31EThe Itanium C++ ABI emits identical complete- and base-object constructors for a class without virtual bases, so a title built against either symbol expects the same object. Each form now calls the same
Construct,ConstructNamedorConstructFromhelper as its implemented sibling inMessages.cpp. The mangled names hash to the inventory NIDs (tools/nid_names.py), so the exports are named and the five placeholders are gone. The debt fragment removes the five table rows and adds a Functional entry: the forms share their siblings' unverified points.Tested
Linux Mint 22.3, GCC 13.3.0, Release, head on
maine4cee4952b.guest_libc_internal_messagesnow builds each new form over a filled 0x10-byte object. It checks, as for the siblings, that only the vtable (the exportedmessages<char>one, or the library'smessages<wchar_t>one) and the reference count are written: C1 and C2(size_t)with a 64-bit count, C2(const char*, size_t)with "C", and the wide C2(const _Locinfo&, size_t).main: the test does not link, because none of the five exports exists there. This PR: passes 3/3.tools/suite.py) on this branch: GPU tests on a GTX 1050 Ti (NVIDIA 580.178.04), an HD 630 (Mesa 25.2.8 ANV) and llvmpipe 25.2.8, everything else once.maine4cee4952bbaseline (GTX none failed, HD 630 the same 10, llvmpipe the same 3), plusagc_driver_pm4_order_signalon the HD 630.mainbuild, 5 runs per GPU, both builds failed 7 of 15.guest_libc_internal_messagesandpublic_headerspass.check_conventions.py,check_test_registration.py,check_main_sync.py(merges cleanly),check_compile.pyanddebt_fold.py --checkare clean.progress.py --module libSceLibcInternallists none of themessagesconstructors as pending.pr_overlap.py --branch: #17300 (rename-only) names the same five aliases. #13778, #14834, #17300 and #18135 could not be compared because they conflict withmain. A trial merge with each adds no conflicting file beyond those it already has. It merges cleanly with #22370 and with our #23809, #23837, #23846 and #23858.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
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-19T20:25:02Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
b415e2cf77:tools/check_conventions.pypassed.guest_libc_internal_messages_testsbuilt cleanly.guest_libc_internal_messages):core/libs/prx/libSceLibcInternal/InventoryExports.cpp,core/libs/prx/libSceLibcInternal/Messages.cpp,core/libs/prx/libSceLibcInternal/include/Api.hpp,core/libs/prx/libSceLibcInternal/include/InventoryExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T12:09:56Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected changes consistently route the five constructor forms through their implemented sibling helpers; validation was not run in this review.
What I ran
Reviewed head
b415e2cf77c0db006d1eaf646febc38e981d6fda. No commands or tests were run; source was inspected throughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Builds, tests, and runtime behavior were not independently verified. The reported Linux and GPU results are author supplied. All six files listed in the manifest were read:
InventoryExports.cpp,Messages.cpp,Api.hpp,InventoryExports.hpp,GuestLibcInternalMessages.cpp, and the debt change fragment. No files were excluded in the manifest.To get this to a good state
Nothing is required.