about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-08-25 06:54:11 +0000
committerJakub Jelinek <jakub@redhat.com>2006-08-25 06:54:11 +0000
commitb26033141cf2a99f44e6d1479eef80da8cc6fbb6 (patch)
tree0a4cb7b8ba301c66f4774279a0bb2f866e5ebb81
parent44731509844946ccd2c2ee1de87901c171dadcc5 (diff)
downloadglibc-b26033141cf2a99f44e6d1479eef80da8cc6fbb6.tar.gz
glibc-b26033141cf2a99f44e6d1479eef80da8cc6fbb6.tar.xz
glibc-b26033141cf2a99f44e6d1479eef80da8cc6fbb6.zip
Temporarily #if 0 out code to limit number of unsurted block sort iterations.
-rw-r--r--malloc/malloc.c5
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
     }
 
     /*