aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 55fb2ab0ec..b73ddbf554 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -3692,6 +3692,8 @@ _mid_memalign (size_t alignment, size_t bytes, void *address)
}
size_t tc_idx = csize2tidx (tbytes);
+ MAYBE_INIT_TCACHE ();
+
if (tcache_available (tc_idx))
{
/* The tcache itself isn't encoded, but the chain is. */