diff options
| author | Cupertino Miranda <cupertino.miranda@oracle.com> | 2025-03-21 17:50:35 +0000 |
|---|---|---|
| committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-03-21 17:52:14 +0000 |
| commit | 855561a1fbc601aa6c373c8a036d472cb52786e7 (patch) | |
| tree | c2b8115e2a917023398c4f5bc547f73cc9b38047 /malloc | |
| parent | 3e2be87832781a29ed67f38f87c1ce3dd4c1b866 (diff) | |
| download | glibc-855561a1fbc601aa6c373c8a036d472cb52786e7.tar.xz glibc-855561a1fbc601aa6c373c8a036d472cb52786e7.zip | |
malloc: missing initialization of tcache in _mid_memalign
_mid_memalign includes tcache code but does not attempt to initialize
tcaches.
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'malloc')
| -rw-r--r-- | malloc/malloc.c | 2 |
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. */ |
