Use fastbin macro everywhere.

This commit is contained in:
Ulrich Drepper 2010-12-25 14:15:42 -05:00
parent 98727dbea2
commit 9798346413
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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