From 5c56603e91d8d0021280615f86b95efe0463b6a8 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Thu, 27 Apr 2017 14:55:07 -0700 Subject: [PATCH] Inline tcache_bin_flush_small_impl / _large_impl. --- src/tcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tcache.c b/src/tcache.c index 292c0176..a7e05b17 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -107,7 +107,7 @@ tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache, return ret; } -static unsigned +static inline unsigned tcache_bin_flush_small_impl(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, szind_t binind, unsigned rem, bool must_flush) { assert(binind < NBINS); @@ -228,7 +228,7 @@ tcache_bin_try_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, false); } -static unsigned +static inline unsigned tcache_bin_flush_large_impl(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, szind_t binind, unsigned rem, bool must_flush) { assert(binind < nhbins);