diff options
author | Ulrich Drepper <drepper@gmail.com> | 2010-12-25 14:15:42 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-12-25 14:15:42 -0500 |
commit | 9798346413d74dc9b3c64731807600b5ab9c1517 (patch) | |
tree | f3af41770b6d7ef49f9501fd8cd44500651d8e17 | |
parent | 98727dbea212799beb7a15eeb9a21c8c5d100267 (diff) | |
download | glibc-9798346413d74dc9b3c64731807600b5ab9c1517.tar glibc-9798346413d74dc9b3c64731807600b5ab9c1517.tar.gz glibc-9798346413d74dc9b3c64731807600b5ab9c1517.tar.bz2 glibc-9798346413d74dc9b3c64731807600b5ab9c1517.zip |
Use fastbin macro everywhere.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | malloc/malloc.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2010-12-25 Ulrich Drepper <drepper@gmail.com> + [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 |