feat(libc): allocate through operator new with align_val_t #6074
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6074"
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 notaxeltv on 2026-10-14T21:24:40Z.
What
tools/import_audit.pyon PPSA34015 lists absentlibc.prximport3yxLpdKD0RA(_ZnwmSt11align_val_t). Alignedoperator deletewas already exported; alignedoperator new(size, align_val_t)was not. It now goes throughApplicationHeapAlignwith the same new-handler retry loop as_Znwm.Tested
Windows 10, WinLibs GCC 15.2.0,
guest_new_handlerpasses (aligned allocate + failure path).tools/check_conventions.py --base upstream/mainpasses.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)Made with Cursor
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:25:25Z.
Progress report (
40255d7→883e4b6)📈 System libraries: 89.17% (+0.01%, +1 implemented functions)
✅ 1 implemented
_ZnwmSt11align_val_t_nid_postfixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:14:14Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libc/src/StdioExtras.cppL40_ZnwmSt11align_val_t_nid_postfixSome comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestNewHandler.cppImported from boykopovar/AnyPS5. Originally posted by coltken95 on 2026-10-15T21:25:03Z.
Tested on Linux x86-64 (Release build), with b0196ae1a merged into main
e16b2bcce:guest_new_handlerandguest_new_handler_default_heappass.guest_new_handler_testsdoesn't link (undefined reference to '_ZnwmSt11align_val_t_nid_postfix', i.e.operator new(size_t, std::align_val_t)).AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by isnisk on 2026-10-16T00:13:57Z.
Checked on Linux: Ubuntu 26.04 (WSL2), GCC 15.2.0, Release, this head (
b0196ae1a) merged ontomain489466d3f(clean merge).guest_new_handlerandguest_new_handler_default_heappass, 3 rounds; no compiler warnings.main'sStdioExtras.cpp): the test does not link (undefined reference to _ZnwmSt11align_val_t_nid_postfix).check_conventions.py --base origin/mainpasses.Not checked: macOS, the title.
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T22:38:31Z.
Checked the build and
guest_new_handler/guest_new_handler_default_heapon the PR merged onto currentmain; the test fails to link without the change. Thanks @coltken95 and @isnisk for the independent Linux runs.Added two commits on top (rebased onto
main):GuestNewHandler.cpp: thealignmock now records the alignment, so the test pins thatoperator new(size, align_val_t)passes(alignment, size)in that order (a swap would have passed before).Merging once the full Build is green.