From 9798346413d74dc9b3c64731807600b5ab9c1517 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 25 Dec 2010 14:15:42 -0500 Subject: Use fastbin macro everywhere. --- ChangeLog | 3 +++ malloc/malloc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c29dd53c47..66431b7d0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-12-25 Ulrich Drepper + [BZ #12207] + * malloc/malloc.c (do_check_malloc_state): Use fastbin macro. + [BZ #12204] * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1. * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise. diff --git a/malloc/malloc.c b/malloc/malloc.c index f7770a394c..3e06b8755b 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -2831,7 +2831,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 -- cgit 1.4.1