From: Ulrich Drepper Date: Sat, 25 Dec 2010 19:15:42 +0000 (-0500) Subject: Use fastbin macro everywhere. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72215c6000487220e075d87cf57509c36b350810;p=thirdparty%2Fglibc.git Use fastbin macro everywhere. (cherry picked from commit 9798346413d74dc9b3c64731807600b5ab9c1517) --- diff --git a/ChangeLog b/ChangeLog index 43312e23a57..133bf3ce9ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-12-25 Ulrich Drepper + + [BZ #12207] + * malloc/malloc.c (do_check_malloc_state): Use fastbin macro. + 2010-12-19 Ulrich Drepper * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more diff --git a/malloc/malloc.c b/malloc/malloc.c index 29c79923d13..8f5ab77d6c7 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -2832,7 +2832,7 @@ static void do_check_malloc_state(mstate av) max_fast_bin = fastbin_index(get_max_fast ()); for (i = 0; i < NFASTBINS; ++i) { - p = av->fastbins[i]; + p = fastbin (av, i); /* The following test can only be performed for the main arena. While mallopt calls malloc_consolidate to get rid of all fast