feat(libSceLibcInternal): implement the aligned nothrow array new and the aligned array delete #14240
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14240"
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 miguelcoxcaballero on 2026-11-01T02:58:15Z.
What
Implements two exports of
libSceLibcInternalthat threwNotImplemented:s2eGsgUF9vk(_ZnamSt11align_val_tRKSt9nothrow_t): aligned nothrow arrayoperator new.v09ZcAhZzSc(_ZdaPvSt11align_val_t): aligned arrayoperator delete.Both take the standard C++17 signatures their mangled names give and forward to the existing
libcexports of the same names, so they share the application heap and the new handler. The debt entry indocs/dev/debt/libSceLibcInternal.mdrecords what is unverified: the console'slibSceLibcInternal.sprxwas not read and no title was seen calling them.Tested
Ubuntu 24.04, GCC, Release build:
tools/check_conventions.py --base origin/mainpasses; the new test plus the existing new_handler, mutex and init_once tests pass; the built library exports both NIDs. Not tested on Windows or macOS, nor with any title.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 MarcZX10 on 2026-11-01T03:05:35Z.
Review: APPROVED
Reviewed — looks good
The current head
631aa9c369cca92cc0c8cacd352b67a3da8d9384adds two aligned array operator exports that forward to the matching existinglibcimplementations; the source review and no-build checks found no blocking issue.What I ran
Reviewed head
631aa9c369cca92cc0c8cacd352b67a3da8d9384. The currentmainbase wasdc9dc7eaaeaf99b1c491d426e68bb999def3da16; Git's merge preview was clean. Environment: Linux x86_64, Python 3.11.2, Git 2.39.5. I did not invoke a compiler.The PR body reports an Ubuntu 24.04 GCC Release build and the new aligned-new plus existing new-handler, mutex, and init-once tests as passing. Those are author-reported, not independently run here.
Results
git diff --check5ed8053dec4bea75bc783245260c8d78fd2c7c67.main.passed_with_warnings; both warnings are the intentional removal of the old placeholder declarations for these two NIDs. Manual inspection confirmed the new explicit NID exports and matching declarations/definitions. This audit does not prove binary ABI or runtime behavior.intakepassed;conventionsandlabelswere pending at the last refresh.Unedited output from checks
git diff --checkstdout (empty):git merge-tree --write-tree:Conventions checker:
Public-header audit:
ABI helper result and relevant findings (selected JSON fields; its full symbol inventory is omitted):
Hosted CI snapshot:
Findings
Blocking
None.
Non-blocking
The PR records that the console's
libSceLibcInternal.sprxand title call sites were not inspected, so same-heap behavior on console remains unverified. The wrapper delegates both allocation and deallocation to the matching existinglibcoperators, and the PR documents this limitation; no contrary evidence surfaced in this review.Sources
libcoperators at the current baseNot verified