Subject: malloc/MALLOC (Re: CVS commit: src/sys/sys)
To: None <christos@zoulas.com>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 03/21/2006 20:00:32
[ moved from source-changes@ ]
> On Mar 19, 9:31pm, thorpej@shagadelic.org (Jason Thorpe) wrote:
> -- Subject: Re: CVS commit: src/sys/sys
>
> | How about just using __builtin_constant_p() and redirecting to malloc
> | () if false?
>
> I wanted it to be compile time not run time, so that the code is fixed.
>
> christos
i thought he didn't mean any run time thing.
with __builtin_constant_p, either version of malloc is chosen
at compile time.
i'm not sure if it's a good idea, tho.
i personally support just removing MALLOC.
YAMAMOTO Takashi