feat(libSceLibcInternal): implement std::nested_exception destructors #16356
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16356"
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 heditrigui on 2026-11-06T11:29:11Z.
What
std::nested_exceptionvirtual destructors inlibSceLibcInternal:_ZNSt16nested_exceptionD0Ev(NIDza50kXyi3SA, deleting destructor)_ZNSt16nested_exceptionD1Ev(NID+qKS53qzWdA, complete-object destructor)_ZNSt16nested_exceptionD2Ev(NID8R00hgzXQDY, base-object destructor)std::nested_exceptioncontains a vtable pointer followed by astd::exception_ptrmember.D2releases the nested exception pointer through libc's_ZNSt15__exception_ptr13exception_ptr10_M_releaseEv_nid_postfixand resets the pointer to null.D1executesD2.D0executesD1and deallocates the object using libc's_ZdlPv_nid_postfix.libSceLibcInternalInventory_052_nid_no_patch,libSceLibcInternalInventory_053_nid_no_patch, andsceLibcInternalUnknown6_064_za50kXyi3SA_nid_no_patch.docs/dev/debt/libSceLibcInternal.mdtechnical debt documentation and counts.Tested
core/libs/tests/GuestLibcInternalNestedException.cppverifying:_ZNSt16nested_exceptionD2Ev_nid_postfix,_ZNSt16nested_exceptionD1Ev_nid_postfix, and_ZNSt16nested_exceptionD0Ev_nid_postfix.D2resets the exception pointer without throwing.D1resets the exception pointer without throwing.D0cleans up object state and deallocates dynamic memory via_ZdlPv_nid_postfix.python tools/check_conventions.py --base upstream/main(0 findings).python core/libs/tests/test_public_headers.py --audit-only(407 libraries, 30714 exports verified).Checklist
main; no other open PR implements the same functions