[PATCH] malloc: Reduce maximum arenas

DJ Delorie dj@redhat.com
Thu Apr 2 17:20:53 GMT 2026


Wilco Dijkstra <Wilco.Dijkstra@arm.com> writes:
> That's not how it works. We create a new arena for every thread that
> happens to use malloc, even if only once. So if say you create a bunch
> of worker threads that are just sitting idle, they get their own arena
> and are just wasting memory.

Ok, so I read it more carefully, and... ewww.  It *looks* better than it
is, but arena sharing only ever happens when you hit the limit.  Sigh.



More information about the Libc-alpha mailing list