feat(libc): implement reallocf #1767
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1767"
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 MarcZX10 on 2026-10-08T18:46:14Z.
What
Implement
reallocfusing the guest application allocator. On allocation failure, free the original allocation, setENOMEM, and return null; preserve zero-size reallocation behavior. The missing import is listed in #1578.Tested
Linux: built
application_heap_tests;ctest --test-dir build -R ^application_heap_(replacement|default)$ --output-on-failurepassed, including a deterministic allocator-failure case.python3 tools/check_conventions.py --base upstream/mainpassed. Windows and PS5 hardware not tested.Checklist
main; no other open PR implements this functionImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T19:08:00Z.
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/tests/ApplicationHeap.cppL270Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:22:23Z.
No title reaches
reallocfon main yet: the homebrew audit lists the import, but those titles stop earlier at other missing imports. Closing for now; reopen when it's a title's next stop on main, with the log line.Pull request closed