[patch v4] malloc: avoid need for tcache == NULL checks

DJ Delorie dj@redhat.com
Wed Oct 1 20:23:11 GMT 2025


Wilco Dijkstra <Wilco.Dijkstra@arm.com> writes:
> Hi DJ,
>
>>>> ^^^ DJ, I think you should remove that #if.
>>>
>>> Yup, I had already updated my local copy but was waiting for the rest of
>>> the feedback before sending a v5.
>
> Note there are 2 redundant #if USE_TACHE in _int_malloc.

Yup, both already removed.

>> I still have it on my list to benchmark it, but it's busy before the Cauldron...
>
> So performance of v4 looks good - there are some small differences but
> now tcache_free_init uses a tailcall, it works out fine.

Thanks!  I'll post a v5 shortly then.



More information about the Libc-alpha mailing list