From owner-svn-src-head@FreeBSD.ORG Sat Jan 31 18:28:01 2009 Return-Path: Delivered-To: svn-src-head@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD80710656BC; Sat, 31 Jan 2009 18:28:01 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 61D3C8FC21; Sat, 31 Jan 2009 18:28:01 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id n0VISJZe015142; Sat, 31 Jan 2009 13:28:19 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id n0VISJua015141; Sat, 31 Jan 2009 13:28:19 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Sat, 31 Jan 2009 13:28:19 -0500 From: David Schultz To: src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG Message-ID: <20090131182819.GA15117@zim.MIT.EDU> Mail-Followup-To: src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, svn-src-head@FreeBSD.ORG References: <200901311827.n0VIR2WF031218@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200901311827.n0VIR2WF031218@svn.freebsd.org> Cc: Subject: Re: svn commit: r187961 - in head: include sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2009 18:28:02 -0000 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().