[quagga-dev 9364] Re: [PATCH 24/25] lib: do not allocate/free thread funcnames

David Lamparter equinox at diac24.net
Tue May 22 19:52:25 BST 2012


On Mon, May 07, 2012 at 07:53:14PM +0200, Jorge Boncompte [DTI2] wrote:
> From: "Jorge Boncompte [DTI2]" <jorge at dti2.net>
> 
>   This avoids memory heap fragmentation and imposses less load on the
> system memory allocator.
> 
> * thread.h: FUNCNAME_LEN choosed arbitrarily.

> +#define FUNCNAME_LEN	48
> +

Changing this to 64 since the maximum function name length specified by
ISO C99 is 63.  Also makes the value less arbitrary ;)


-David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: Digital signature
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20120522/f0fd1127/attachment-0001.sig>


More information about the Quagga-dev mailing list