1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

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> 2010-12-25 Ulrich Drepper <drepper@gmail.com>
[BZ #12207]
* malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
[BZ #12204] [BZ #12204]
* string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1. * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
* sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise. * 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 ()); max_fast_bin = fastbin_index(get_max_fast ());
for (i = 0; i < NFASTBINS; ++i) { 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. /* The following test can only be performed for the main arena.
While mallopt calls malloc_consolidate to get rid of all fast While mallopt calls malloc_consolidate to get rid of all fast