diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-08-25 06:54:11 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-08-25 06:54:11 +0000 |
commit | b26033141cf2a99f44e6d1479eef80da8cc6fbb6 (patch) | |
tree | 0a4cb7b8ba301c66f4774279a0bb2f866e5ebb81 /malloc | |
parent | 44731509844946ccd2c2ee1de87901c171dadcc5 (diff) | |
download | glibc-b26033141cf2a99f44e6d1479eef80da8cc6fbb6.tar.gz glibc-b26033141cf2a99f44e6d1479eef80da8cc6fbb6.tar.xz glibc-b26033141cf2a99f44e6d1479eef80da8cc6fbb6.zip |
Temporarily #if 0 out code to limit number of unsurted block sort iterations.
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 6de1409c4f..64d898a61b 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -4069,9 +4069,10 @@ _int_malloc(mstate av, size_t bytes) */ for(;;) { - +#if 0 int iters = 0; bool any_larger = false; +#endif while ( (victim = unsorted_chunks(av)->bk) != unsorted_chunks(av)) { bck = victim->bk; if (__builtin_expect (victim->size <= 2 * SIZE_SZ, 0) @@ -4168,11 +4169,13 @@ _int_malloc(mstate av, size_t bytes) fwd->bk = victim; bck->fd = victim; +#if 0 if (size >= nb) any_larger = true; #define MAX_ITERS 10000 if (++iters >= MAX_ITERS) break; +#endif } /* |