svn commit: r187961 - in head: include sys/sys

David Schultz das at FreeBSD.ORG
Sat Jan 31 10:28:02 PST 2009

On Sat, Jan 31, 2009, David Schultz wrote:
>   Add a function attribute called `__malloc_like', which informs gcc
>   that the annotated function returns a pointer that doesn't alias any
>   extant pointer.

It wouldn't hurt if a networking guru added this annotation to the
mbuf allocator as well, but it probably wouldn't help much either. 
I deliberately didn't add it to uma(9) because ctors might create
aliases to the memory regions returned by uma_zalloc().

More information about the svn-src-head mailing list