From 3997b7c41343589195893e88607798db44278d09 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 21 Aug 2006 19:44:56 +0000 Subject: [BZ #3040] 2006-08-21 Ulrich Drepper [BZ #3040] * sysdeps/unix/sysv/linux/openat.c: Fix compilation if __ASSUME_ATFCTS is defined. --- malloc/malloc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'malloc') diff --git a/malloc/malloc.c b/malloc/malloc.c index 3f4ddcd..b1f813e 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4147,17 +4147,17 @@ _int_malloc(mstate av, size_t bytes) } } - if (size >= nb) - any_larger = true; -#define MAX_ITERS 10000 - if (++iters == MAX_ITERS) - break; - mark_bin(av, victim_index); victim->bk = bck; victim->fd = fwd; fwd->bk = victim; bck->fd = victim; + + if (size >= nb) + any_larger = true; +#define MAX_ITERS 10000 + if (++iters >= MAX_ITERS) + break; } /* -- cgit v1.1