From owner-freebsd-current Sun Sep 2 19:16:15 2001 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 1D7E637B407 for ; Sun, 2 Sep 2001 19:16:12 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id CD6A481D01; Sun, 2 Sep 2001 21:16:06 -0500 (CDT) Date: Sun, 2 Sep 2001 21:16:06 -0500 From: Alfred Perlstein To: John Polstra Cc: current@freebsd.org, gersh@sonn.com Subject: Re: MALLOC/FREE macro useage. Message-ID: <20010902211606.I81307@elvis.mu.org> References: <200109030123.f831Nda00552@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200109030123.f831Nda00552@vashon.polstra.com>; from jdp@polstra.com on Sun, Sep 02, 2001 at 06:23:39PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * John Polstra [010902 20:23] wrote: > In article , > Gersh wrote: > > sys/malloc.h says that the macro versions of MALLOC/FREE are > > deprecated however they are used all over the place. I belive that they > > are cluttering and dont really have a purpose. Does anybody else agree? > > > > If I were to make up a patch for current removing all of them would > > anybody care enough to commit it (Or care enough to not have it commited) > > Please don't. It would just create a bunch of new gratuitous > differences against the other BSDs. The reason for the macro is that when the size paramter is a constant there's an evil trick that makes selecting the malloc bucket really cheap. Please don't remove it. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message