[PATCH] malloc: move tcache_init out of hot tcache paths
DJ Delorie
dj@redhat.com
Fri Apr 11 18:16:38 GMT 2025
Wilco Dijkstra <Wilco.Dijkstra@arm.com> writes:
> It's fine to move tcache init later - however we still want to check
> it in free() in case a new thread deallocates data allocated by
> another thread.
If the program is using that paradigm, we might want to wait until a
thread calls malloc() before we start saving things in tcache for that
thread.
More information about the Libc-alpha
mailing list