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

Tomash Brechko tomash@tvcom.ru
Sun Dec 12 17:33:00 GMT 2004


On Sun, Dec 12, 2004 at 20:11:00 +0300, Tomash Brechko wrote:
> 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;

No need, sorry.  Just misunderstood my own code :-).


-- 
     Tomash Brechko
<mailto:tomash@tvcom.ru>



More information about the Libc-alpha mailing list