feat(libSceLibcInternal): implement the empty deleting destructors #16009
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16009"
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 edubox on 2026-11-05T09:19:01Z.
What
Six
libSceLibcInternaldeleting destructors threw. In firmware 11.00 (system/common/lib/libSceLibcInternal.sprx) each one destroys an empty object and calls the guestoperator delete; none of them has any other effect. This change does the same through_ZdlPv_nid_postfix:_ZNSt7codecvtIwc9_MbstatetED0Ev9BI3oYkCTCU_ZNSt8messagesIcED0Evjy9urODH0Wo_ZNSt8messagesIwED0EvgMwkpZNI9Us_ZNSt8money_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED0Evqkl3Siab04M_ZNSt8time_putIwSt19ostreambuf_iteratorIwSt11char_traitsIwEEED0Ev6yplvTHbxpE_ZNSt24_Iostream_error_categoryD0EvjVwxMhFRw8QThe six bodies in the module are
push %rbp; mov %rsp,%rbp; call 0xb1e10; pop %rbp; ret, where0xb1e10is_ZdlPv. The matchingD1destructors return without touching the object, so the deleting destructor is just the free. The exports keep their helper names incore/libs/prx/libSceLibcInternal/InventoryExports6.cpp; the library exports the same NIDs as onmain.docs/dev/debt/libSceLibcInternal.md: the six per-function "signature and behavior are unverified" entries are removed because their gaps are closed. No new debt entry is needed: the 11.00 module settles the body and the mangled name settles thevoid(void*)signature.Tested
Linux x86-64, GCC 16.2.1, Release,
origin/main6d173c1a197.core/libs/tests/GuestLibcInternalDeletingDestructors.cppregisters a host allocation table throughApplicationHeapRegister_nid_no_patch, allocates each object with the guest_Znwm_nid_postfix, and asserts that each deleting destructor calls the registered free exactly once on that object.guest_libc_internal_deleting_destructorsandguest_libc_internal_{aligned_new,exception_destructors,mtx,pad}plusguest_init_oncepass.tools/check_conventions.py --base origin/main: passed.tools/pr_overlap.py --branch feat/libcint-deleting-destructors --jobs 32: no open pull request implements the same exports. The reported file overlap comes from the stub-renaming pull request declared as the dependency below and from pull requests that already conflict withmain.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)