]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use fastbin macro everywhere.
authorUlrich Drepper <drepper@gmail.com>
Sat, 25 Dec 2010 19:15:42 +0000 (14:15 -0500)
committerPetr Baudis <pasky@suse.cz>
Thu, 3 Feb 2011 16:05:39 +0000 (17:05 +0100)
(cherry picked from commit 9798346413d74dc9b3c64731807600b5ab9c1517)

ChangeLog
malloc/malloc.c

index 43312e23a572ce91c80436cc2809ab22593c5f36..133bf3ce9ead7d91f8ab0910c5791cd3930a69b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-25  Ulrich Drepper  <drepper@gmail.com>
+
+       [BZ #12207]
+       * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
+
 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
 
        * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
index 29c79923d134362f0adf7cce4f21fcd552aa9c29..8f5ab77d6c7521c82dcb3239f1955ab01a9fa006 100644 (file)
@@ -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