Subject: Re: CVS commit: src/sys/sys
To: None <christos@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: source-changes
Date: 03/19/2006 21:31:37
On Mar 17, 2006, at 3:27 PM, Christos Zoulas wrote:

>
> Module Name:	src
> Committed By:	christos
> Date:		Fri Mar 17 23:27:12 UTC 2006
>
> Modified Files:
> 	src/sys/sys: malloc.h
>
> Log Message:
> prevent using MALLOC when size is not const.

How about just using __builtin_constant_p() and redirecting to malloc 
() if false?

-- thorpej