about summary refs log tree commit diff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2010-04-03 09:43:10 -0700
committerUlrich Drepper <drepper@redhat.com>2010-04-03 09:43:10 -0700
commit991eda1ec17665ea0da247f8eabc6993d020ed8e (patch)
treeff2a4bf32a6713557ca436b06dd8131386ca39b9 /malloc/malloc.c
parent960af486d29fb1c233c5cd92e1d6dc029daeb7af (diff)
downloadglibc-991eda1ec17665ea0da247f8eabc6993d020ed8e.tar.gz
glibc-991eda1ec17665ea0da247f8eabc6993d020ed8e.tar.xz
glibc-991eda1ec17665ea0da247f8eabc6993d020ed8e.zip
Fix set_max_fast in malloc.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 6993aea0ec..784919e4bd 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -2350,7 +2350,8 @@ typedef struct malloc_chunk* mfastbinptr;
 */
 
 #define set_max_fast(s) \
-  global_max_fast = ((s) == 0)? SMALLBIN_WIDTH: request2size(s)
+  global_max_fast = (((s) == 0)						      \
+		     ? SMALLBIN_WIDTH: ((s + SIZE_SZ) & ~MALLOC_ALIGN_MASK))
 #define get_max_fast() global_max_fast