]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Call tcache destructor in arena_thread_freeres
authorFlorian Weimer <fweimer@redhat.com>
Thu, 23 Nov 2017 13:47:31 +0000 (14:47 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 23 Nov 2017 13:47:31 +0000 (14:47 +0100)
commit0a947e061d47c9710838f210506215bd9533324b
tree7b794c6778f0b904909e87a560696799bbcd4e7d
parent67f36c7922fe5053549ec9aa7f60ed2c5c2d65b4
malloc: Call tcache destructor in arena_thread_freeres

It does not make sense to register separate cleanup functions for arena
and tcache since they're always going to be called together.  Call the
tcache cleanup function from within arena_thread_freeres since it at
least makes the order of those cleanups clear in the code.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
ChangeLog
malloc/arena.c
malloc/malloc.c