]> git.ipfire.org Git - thirdparty/glibc.git/commit
Inline tcache functions
authorWilco Dijkstra <wdijkstr@arm.com>
Tue, 17 Oct 2017 17:25:43 +0000 (18:25 +0100)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 16 Nov 2017 06:44:30 +0000 (12:14 +0530)
commitade53e0df7a1257c54ce96e01fa659b374db2117
treee8149b1fba240a344c8a3104e5f32b208b7ca877
parent77f921dac17c5fa99bd9e926d926c327982895f7
Inline tcache functions

The functions tcache_get and tcache_put show up in profiles as they
are a critical part of the tcache code.  Inline them to give tcache
a 16% performance gain.  Since this improves multi-threaded cases
as well, it helps offset any potential performance loss due to adding
single-threaded fast paths.

* malloc/malloc.c (tcache_put): Inline.
(tcache_get): Inline.

(cherry-picked from commit e4dd4ace56880d2f1064cd787e2bdb96ddacc3c4)
ChangeLog
malloc/malloc.c