[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
release and debug mode heap allocation
- Date: Tue, 27 May 2008 16:49:43 +0200
- From: aconchillo at ieec.cat (Aleix Conchillo Flaqué)
- Subject: release and debug mode heap allocation
On Tue, May 27, 2008 at 4:19 PM, Joel Sherrill
<joel.sherrill at oarcorp.com> wrote:
>
> Unfortunately in 4.6, the macro isn't clearly named.
> You have to use CONFIGURE_MEMORY_OVERHEAD which
> has one added to it and then multiplied by 1024 in
> 4.6. So there is 1 kilobyte of overhead in 4.6. :(
>
> In 4.8 and newew, 1 is not added to it so there isn't the 1 kb
> overhead. And 4.8 and newer have the much more appropriately
> named CONFIGURE_MESSAGE_BUFFER_MEMORY which is in bytes.
>
> This just points out how we have worked to be more accurate
> and frugal and at the same time make things clearer.
>
That's great. I have tried it and seems to work fine (even I had to
add more memory than I thought). Now I can have proper confdefs.h
values.
Thank you very much.
Aleix