]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Use __always_inline for simple functions
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 20 Mar 2025 16:36:52 +0000 (16:36 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 26 Mar 2025 13:17:51 +0000 (13:17 +0000)
commit1233da4943a9a0e334748490225ae10b0d770c0a
treee1651833759ba6e285c45a12e288066cb9b3015f
parent3263675250cbcbbcc76ede4f7c660418bd345a11
malloc: Use __always_inline for simple functions

Use __always_inline for small helper functions that are critical for
performance.  This ensures inlining always happens when expected.
Performance of bench-malloc-simple improves by 0.6% on average on
Neoverse V2.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/arena.c
malloc/malloc.c