From: Ulrich Drepper Date: Mon, 14 May 2007 22:53:09 +0000 (+0000) Subject: * malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes. X-Git-Tag: cvs/glibc-2_6~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a31b586c458d13af63cc116013bb0aba91498b5;p=thirdparty%2Fglibc.git * malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes. 2007-05-13 Ulrich Drepper --- diff --git a/ChangeLog b/ChangeLog index 621eee508fa..59d7f87e26d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ -2007-05-13 Ulrich Drepper +2007-05-14 Ulrich Drepper + + * malloc/malloc.c (largebin_index): Really have 32 buckets with 64 sizes. +2007-05-13 Ulrich Drepper * malloc/malloc.c [MALLOC_DEBUG]: Keep track of current maximum number of mmaps. n_mmaps_max is the target. * malloc/hooks.c: Likewise. diff --git a/malloc/malloc.c b/malloc/malloc.c index 0a947a4ab82..1e586faa2a8 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -2134,7 +2134,7 @@ typedef struct malloc_chunk* mbinptr; #define smallbin_index(sz) (((unsigned)(sz)) >> 3) #define largebin_index(sz) \ -(((((unsigned long)(sz)) >> 6) <= 32)? 56 + (((unsigned long)(sz)) >> 6): \ +(((((unsigned long)(sz)) >> 6) <= 38)? 56 + (((unsigned long)(sz)) >> 6): \ ((((unsigned long)(sz)) >> 9) <= 20)? 91 + (((unsigned long)(sz)) >> 9): \ ((((unsigned long)(sz)) >> 12) <= 10)? 110 + (((unsigned long)(sz)) >> 12): \ ((((unsigned long)(sz)) >> 15) <= 4)? 119 + (((unsigned long)(sz)) >> 15): \