Subject: Re: MALLOC()
To: None <itojun@iijlab.net>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 08/25/2000 20:11:42
On Sat, Aug 26, 2000 at 11:07:57AM +0900, itojun@iijlab.net wrote:

 > 
 > >Module Name:	syssrc
 > >Committed By:	thorpej
 > >Date:		Fri Aug 25 21:25:58 UTC 2000
 > >Modified Files:
 > >	syssrc/sys/netinet6: ipcomp_core.c
 > >Log Message:
 > >Don't use MALLOC() for variable-sized allocations.
 > 
 > 	sorry for stupid question, could you tell me why?
 > 	is there any future plan to change MALLOC() internal?
 > 	did I missed any emails/whatever?  malloc(9) is silent about it.

For non-compile-time constants, MALLOC() expands to a very large chunk
of code.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>