Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2001 21:16:06 -0500
From:      Alfred Perlstein <bright@mu.org>
To:        John Polstra <jdp@polstra.com>
Cc:        current@freebsd.org, gersh@sonn.com
Subject:   Re: MALLOC/FREE macro useage.
Message-ID:  <20010902211606.I81307@elvis.mu.org>
In-Reply-To: <200109030123.f831Nda00552@vashon.polstra.com>; from jdp@polstra.com on Sun, Sep 02, 2001 at 06:23:39PM -0700
References:  <Pine.BSF.4.21.0109021653030.86878-100000@tabby.sonn.com> <200109030123.f831Nda00552@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* John Polstra <jdp@polstra.com> [010902 20:23] wrote:
> In article <Pine.BSF.4.21.0109021653030.86878-100000@tabby.sonn.com>,
> Gersh  <gersh@sonn.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010902211606.I81307>