]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Inline tcache_try_malloc
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Wed, 16 Apr 2025 12:21:56 +0000 (12:21 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 1 May 2025 20:01:53 +0000 (20:01 +0000)
commit5d101745814b9c1d59fb830bb044f702437f3002
tree285fe7f0e61b5532d2e694a58b521e733ed38542
parent84977600dace5a7cfcb0918e6757939fd4969839
malloc: Inline tcache_try_malloc

Inline tcache_try_malloc into calloc since it is the only caller.  Also fix
usize2tidx and use it in __libc_malloc, __libc_calloc and _mid_memalign.
The result is simpler, cleaner code.

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