mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
malloc: fix definition for MAX_TCACHE_SMALL_SIZE
Reviewed-by: Arjun Shankar <arjun@redhat.com>
This commit is contained in:
committed by
Arjun Shankar
parent
e85dbd8604
commit
0263528f8d
@@ -294,7 +294,7 @@
|
|||||||
# define TCACHE_SMALL_BINS 64
|
# define TCACHE_SMALL_BINS 64
|
||||||
# define TCACHE_LARGE_BINS 12 /* Up to 4M chunks */
|
# define TCACHE_LARGE_BINS 12 /* Up to 4M chunks */
|
||||||
# define TCACHE_MAX_BINS (TCACHE_SMALL_BINS + TCACHE_LARGE_BINS)
|
# 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. */
|
/* Only used to pre-fill the tunables. */
|
||||||
# define tidx2usize(idx) (((size_t) idx) * MALLOC_ALIGNMENT + MINSIZE - SIZE_SZ)
|
# define tidx2usize(idx) (((size_t) idx) * MALLOC_ALIGNMENT + MINSIZE - SIZE_SZ)
|
||||||
|
Reference in New Issue
Block a user