malloc: Trim unused arenas on thread exit

Florian Weimer fweimer@redhat.com
Wed Nov 15 13:36:00 GMT 2017


On 11/15/2017 12:19 PM, Siddhesh Poyarekar wrote:
> On Wednesday 15 November 2017 04:14 PM, Florian Weimer wrote:
>> It could be related to the ordering between tcache_thread_freeres and
>> arena_thread_freeres.  We should merge the two to enforce the correct
>> ordering.
> 
> I agree, it sounds like a better idea to have a single freeres for a
> module anyway.

Here's a patch which does just that.  Tested with and without 
--disable-experimental-malloc.

It doesn't have any consolidation/trimming changes.

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: malloc-shutdown.patch
Type: text/x-patch
Size: 2370 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171115/a48cc974/attachment.bin>


More information about the Libc-alpha mailing list