]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: fix definition for MAX_TCACHE_SMALL_SIZE
authorCupertino Miranda <cupertino.miranda@oracle.com>
Tue, 8 Jul 2025 17:54:44 +0000 (18:54 +0100)
committerArjun Shankar <arjun@redhat.com>
Mon, 14 Jul 2025 17:44:48 +0000 (19:44 +0200)
Reviewed-by: Arjun Shankar <arjun@redhat.com>
malloc/malloc.c

index 6da40ad60202bd8f77022ba4ac20982ec5f07c5b..5ca390cc225c6513cd106a974e8c6ef1baea3130 100644 (file)
 # define TCACHE_SMALL_BINS             64
 # define TCACHE_LARGE_BINS             12 /* Up to 4M chunks */
 # define TCACHE_MAX_BINS       (TCACHE_SMALL_BINS + TCACHE_LARGE_BINS)
-# define MAX_TCACHE_SMALL_SIZE tidx2usize (TCACHE_MAX_BINS-1)
+# define MAX_TCACHE_SMALL_SIZE tidx2usize (TCACHE_SMALL_BINS-1)
 
 /* Only used to pre-fill the tunables.  */
 # define tidx2usize(idx)       (((size_t) idx) * MALLOC_ALIGNMENT + MINSIZE - SIZE_SZ)