Date: Sat, 31 Jan 2009 13:28:19 -0500 From: David Schultz <das@FreeBSD.ORG> To: src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Subject: Re: svn commit: r187961 - in head: include sys/sys Message-ID: <20090131182819.GA15117@zim.MIT.EDU> In-Reply-To: <200901311827.n0VIR2WF031218@svn.freebsd.org> References: <200901311827.n0VIR2WF031218@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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().
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090131182819.GA15117>