feat(libSceLibcInternal): implement remaining facet deleting destructors #25556
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25556"
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 DIMPM32145 on 2026-11-22T08:52:02Z.
What
Implement the 5 remaining virtual deleting destructors (
D0) for standard facets inlibSceLibcInternal:_ZNSt10moneypunctIwLb1EED0Ev_nid_postfix(NIDfWuQSVGOivA)_ZNSt7_MpunctIcED0Ev_nid_postfix(NIDLzj4ws7DlhQ)_ZNSt7_MpunctIwED0Ev_nid_postfix(NID8UeuxGKjQr8)_ZNSt10moneypunctIcLb0EED0Ev_nid_postfix(NIDsS5fF+fht2c)_ZNSt10moneypunctIcLb1EED0Ev_nid_postfix(NIDtcdvTUlPnL0)In the Dinkumware C++ runtime, facet complete-object destructors have trivial bodies and delegating to
_ZdlPv_nid_postfix(self)matches the existing implementations of_ZNSt7codecvtIwc9_MbstatetED0Ev_nid_postfix,_ZNSt8messagesIwED0Ev_nid_postfix, and_ZNSt9money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED0Ev_nid_postfix.Register all 5 in
GuestLibcInternalDeletingDestructors.cppand fold them out of technical debt via a fragment.Tested
Windows 11,
tools/check_conventions.py --base origin/mainpassed cleanly with 0 errors.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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-22T08:55:30Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
894bbe63f7:tools/check_conventions.pypassed.guest_libc_internal_deleting_destructors_testsbuilt cleanly.guest_libc_internal_deleting_destructors):core/libs/prx/libSceLibcInternal/Export.cpp,core/libs/prx/libSceLibcInternal/InventoryExports6.cpp,core/libs/prx/libSceLibcInternal/include/InventoryExports6.hpp,core/libs/prx/libSceLibcInternal/include/PendingExports.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-22T10:15:03Z.
Review: APPROVED
Reviewed — looks good
Nothing in the changed code blocks merging; all five deleting destructors forward the object pointer to the established deallocation function, and the test includes each new function.
What I ran
Reviewed head
894bbe63f7c37c8bbc482151783a7f2a2f6c0c0dusingrepo_read.py's prepared review bundle and pinned repository reader. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, test, runtime, or physical-console behavior was verified. The files in
files.jsonunderreviewedwere read:Export.cpp,InventoryExports6.cpp,InventoryExports6.hpp,PendingExports.hpp,GuestLibcInternalDeletingDestructors.cpp, andfeat-libcinternal-facet-deleting-destructors.md. No changed files were excluded by the manifest.To get this to a good state
Nothing is required.