lkml.org 
[lkml]   [2005]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] slab: kfree(null) is unlikely
Jeff Garzik <jgarzik@pobox.com> wrote:
>
> Linux Kernel Mailing List wrote:
> > ChangeSet 1.2231.1.8, 2005/03/28 19:18:25-08:00, akpm@osdl.org
> >
> > [PATCH] slab: kfree(null) is unlikely
> >
> > - mark kfree(NULL) as being unlikely
>
> This is just a wild guess, right?

More like a judgement based on experience?

> Seems to me, it depends on the code.
>

If someone is doing kfree(0) with sufficient frequency for this patch to
matter, then they need to stop doing that, rather than pessimising kfree(not 0).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-06 13:31    [W:0.112 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site