You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: inline mimalloc's allocation fast path into the runtime entry point
This PR compiles mimalloc and the fused small-object allocation entry point in a single translation unit, so that compiled code reaches memory for a small object with one call that inlines mimalloc's fast path.
The new `runtime/mimalloc.cpp` #includes all of mimalloc (`static.c`) followed by `lean_alloc_small_object_core`, replacing `static.c` as the source of the mimalloc build variants; GCC additionally needs `-fno-semantic-interposition` to inline mimalloc's exported functions under -fPIC. Second step extracted from #14950; the mimalloc source patch (`mi_malloc_small_aligned`, `MI_BLOCK_SCRUB`) and the `object_rc.cpp` split stay there.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KEqhVRwDgbXCrsn7AxsMdX
0 commit comments