aboutsummaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-08-21 19:44:56 +0000
committerUlrich Drepper <drepper@redhat.com>2006-08-21 19:44:56 +0000
commit3997b7c41343589195893e88607798db44278d09 (patch)
treeb83489c367ce030c20b4872e730480ba11655c79 /malloc
parent2b34af01c389f5295a0e7e2b3b1b2a2c41567b02 (diff)
downloadglibc-3997b7c41343589195893e88607798db44278d09.zip
glibc-3997b7c41343589195893e88607798db44278d09.tar.gz
glibc-3997b7c41343589195893e88607798db44278d09.tar.bz2
[BZ #3040]
2006-08-21 Ulrich Drepper <drepper@redhat.com> [BZ #3040] * sysdeps/unix/sysv/linux/openat.c: Fix compilation if __ASSUME_ATFCTS is defined.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c12
1 files changed, 6 insertions, 6 deletions
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;
}
/*