This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] malloc.c: size skip list to bound best-fit search time


On Sun, Dec 12, 2004 at 17:12:23 +0300, Tomash Brechko wrote:
> Summary: below is a patch to prevent malloc() extreme performance
> degradation in some not-so-unusual cases.

After applying previous patch please apply the following.

Tomash


--- malloc.c-orig	2004-12-12 20:07:32.461470496 +0300
+++ malloc.c	2004-12-12 19:43:29.458840240 +0300
@@ -4122,7 +4122,7 @@
           }
         }
 
-        assert(!in_skip_list(victim));
+        assert(fwd == bck || !in_skip_list(victim));
 
         if (has_unique_size) {
           mlargechunkptr lvictim;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]