Statistics
| Branch: | Revision:

iof-bird-daemon / lib / mempool.c @ d14f8c3c

History | View | Annotate | Download (5.89 KB)

# Date Author Comment
ae80a2de 06/08/2015 12:24 AM Pavel TvrdĂ­k

unsigned [int] -> uint

7c4a8007 04/14/2014 10:28 AM Ondrej Filip

Fixed bug in unused function.

acb60628 06/02/2010 08:20 PM Ondrej Zajicek

Implements command that shows memory usage.

46eb80d5 09/17/2009 03:52 PM Ondrej Zajicek

Fixes headers for uintptr_t (and build on NetBSD).

daeeb8e9 09/04/2009 09:24 AM Ondrej Zajicek

Clear memory allocated by ralloc().

This also fixes bug that timer->recurrent was not cleared
in tm_new() and unexpected recurrence of startup timer
in BGP confused state machine and caused crash.

d1abbeac 07/06/2009 05:07 PM Ondrej Zajicek

Fixes memory alignment problems on Sparc64.

Not quite standard construction, i should add
some autoconf macro.

Not tested yet.

7fdd338c 06/01/2004 10:28 AM Ondrej Filip

ALIGN -> BIRD_ALIGN

0766e962 01/17/2001 08:32 AM Martin Mares

Bug fix from Zheng Yuan <>.

5cc1e1f8 06/05/2000 11:41 AM Martin Mares

Documented memory resources.

c9763428 05/08/2000 10:33 PM Martin Mares

Implemented debugging function rlookup() which you can call from gdb
to see what resource does the address given as a parameter belong to.

221135d6 03/31/2000 11:30 PM Martin Mares

Include "lib/string.h" instead of <string.h>. It should give us bzero()
and other non-portable functions on all systems.

92af6f30 10/29/1999 10:08 AM Martin Mares

Simplify handling of free chunks.

507cb9e5 10/02/1999 10:55 AM Martin Mares

Don't forget to free large blocks.

5bc512aa 03/29/1999 08:14 PM Martin Mares

Clarify resource dumps and include them in the main debugging dump.

f5c687f7 03/29/1999 07:35 PM Martin Mares

Added lp_flush() which flushes contents of a linear pool, leaving all the
memory available for subsequent allocations from the same pool. Both flushing
and re-using the memory costs just few instructions.

b35d72ac 12/06/1998 11:59 AM Martin Mares

Name cleanups as suggested by Pavel:

- cfg_strcpy() > cfg_strdup()
mempool -> linpool, mp_* -> lp_* [to avoid confusion with memblock, mb_*]

Anyway, it might be better to stop ranting about names and do some real work.

d4bc8dc0 05/24/1998 02:46 PM Martin Mares

Staticized some variables and functions.

18c8241a 05/03/1998 04:43 PM Martin Mares

BIRD library: The story continues.

Complete resource manages and IP address handling.