]> git.puffer.fish Git - mirror/frr.git/commit
lib: do not allocate/free thread funcnames
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Mon, 7 May 2012 16:53:14 +0000 (16:53 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 22 May 2012 18:50:14 +0000 (20:50 +0200)
commit22714f99c4ffeb4d1bade7ad6374adeba0e06e4c
tree43b6e720bc05ad1bc5748d8d8a08c725a7fe6a90
parent64018324d5e5071eea3b3f72f939d91dc7aef029
lib: do not allocate/free thread funcnames

  This avoids memory heap fragmentation and imposses less load on the
system memory allocator.

* thread.h: FUNCNAME_LEN defined to 64 (ISO C99 says max 63)

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
[changed FUNCNAME_LEN to a less arbitrary value]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/memtypes.c
lib/thread.c
lib/thread.h