Discussion:
[PATCH] slab: kfree(null) is unlikely
(too old to reply)
Jeff Garzik
2005-03-29 08:16:28 UTC
Permalink
[PATCH] slab: kfree(null) is unlikely
- mark kfree(NULL) as being unlikely
This is just a wild guess, right?

Seems to me, it depends on the code.

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Andrew Morton
2005-03-29 08:11:12 UTC
Permalink
Post by Jeff Garzik
[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?
Post by Jeff Garzik
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 ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



-------------------------------------------------------------------------------
Achtung: diese Newsgruppe ist eine unidirektional gegatete Mailingliste.
Antworten nur per Mail an die im Reply-To-Header angegebene Adresse.
Fragen zum Gateway -> ***@inka.de.
-------------------------------------------------------------------------------
Loading...