malloc: fix definition for MAX_TCACHE_SMALL_SIZE

Reviewed-by: Arjun Shankar <arjun@redhat.com>
This commit is contained in:
Cupertino Miranda 2025-07-08 18:54:44 +01:00 committed by Arjun Shankar
parent e85dbd8604
commit 0263528f8d
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@
# 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)