fix(libc): implement PAF mspace memalign #7878
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7878"
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 PayloadAnim on 2026-10-19T12:05:06Z.
What
Implement
sceLibcPafMspaceMemalignby delegating tosceLibcMspaceMemalign. The PAF owner argument is ignored, matching existing PAF allocator wrappers; the inferred signature and unverified console behavior are recorded in the libc debt note.Tested
Windows:
cmake --build build --target libcpassed (user-reported).check_conventions.pypassed. Tests not run. The overlap comparison found no matching function changes; I manually reviewed the conflictingdocs/dev/debt/libc.mdhunks and found them unrelated.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 github-actions[bot] on 2026-10-19T12:05:46Z.
Progress report (
ebf1a90→3045488)📈 System libraries: 81.62% (+0.01%, +1 implemented functions)
✅ 1 implemented
sceLibcPafMspaceMemalign_nid_postfixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:16:52Z.
Some 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.
docs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.mdImported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-19T12:24:24Z.
Review: COMMENTED
Verified on Windows 11 with MinGW-w64 GCC 15.2.0 (Release):
sceLibcPafMspaceMemalign_nid_postfixcorrectly delegates tosceLibcMspaceMemalign_nid_postfix(handle, alignment, size)ignoring the trailing owner argument, matching the established PAF wrapper pattern incore/libs/prx/libc/src/Mspace.cpp.docs/dev/debt/libc.mdupdated cleanly.tools/check_conventions.pypasses cleanly.Suggestion: Consider adding unit test coverage in
core/libs/tests/Mspace.cppalongside the othersceLibcPafMspace*test cases:Tested locally:
ctest --test-dir build-libs -R "^mspace$" -Vbuilds and passes in 0.08s.