Tcache: Unify bin flush logic.

The small and large pathways share most of their logic, even if some of the
individual operations are different.  We pull out the common logic into a
force-inlined function, and then specialize twice, once for each value of
"small".
This commit is contained in:
David T. Goldblatt
2020-02-23 20:33:04 -08:00
committed by David Goldblatt
parent 9f4fc27389
commit 6c3491ad31
2 changed files with 172 additions and 147 deletions

View File

@@ -92,4 +92,13 @@ isblank(int c) {
#endif
#include <fcntl.h>
/*
* The Win32 midl compiler has #define small char; we don't use midl, but
* "small" is a nice identifier to have available when talking about size
* classes.
*/
#ifdef small
# undef small
#endif
#endif /* JEMALLOC_INTERNAL_H */