Repository navigation
feat(libc): implement malloc_stats_fast through the application allocator - #2039
Conversation
…ator A title that replaces the allocator through its libc parameters also supplies malloc_stats_fast in that table, and PPSA28997 calls it. It is now forwarded to the title's function. Without a replacement allocator that provides it, the call throws.
|
The callback path follows the existing heap lock and callback-scope pattern. Please add coverage for forwarding a supplied slot-8 callback and for the missing-allocator/missing-slot error paths; these are the new behavior and currently have no regression test. GitHub reports no checks on this head, so please get the relevant CI jobs running before merge. |
|
Same as #2038: the log line where PPSA28997 stops on main at |
|
Added coverage in bdeef94 (
Removing the forwarding, the missing-slot check or the callback scope each makes a test fail. Where PPSA28997 stops: Main doesn't export it at all ( The build workflows on this head are waiting for approval to run (fork PR). |
|
Moved the |
|
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
No title was run. 🤖 Addressed by Claude Code |
|
Checked on Linux (GCC), merged onto current main: build + ctest green (532/532); the three |
What
A title that replaces the allocator through its libc parameters also supplies
malloc_stats_fastin that table, at the entry already recorded inMallocReplace. PPSA28997 (God of War Sons of Sparta) calls it.malloc_stats_fastis now exported and forwarded to the title's function, under the same checks and callback scope as the other application-heap calls. Without a replacement allocator that provides it, the call throws.Tested
tools/check_conventions.py --base origin/mainandtools/pr_overlap.py --branchpass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)