Browse code

mem Remove SVN ID, remove history

Olle E. Johansson authored on 25/02/2015 08:12:38
Showing 16 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6 6
  * Permission to use, copy, modify, and distribute this software for any
7 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -16,30 +16,6 @@
16 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 17
  */
18 18
 
19
-/*
20
- * History:
21
- * --------
22
- *              created by andrei
23
- *  2003-07-06  added fm_realloc (andrei)
24
- *  2004-07-19  fragments book keeping code and support for 64 bits
25
- *               memory blocks (64 bits machine & size >=2^32) 
26
- *              GET_HASH s/</<=/ (avoids waste of 1 hash cell)   (andrei)
27
- *  2004-11-10  support for > 4Gb mem., switched to long (andrei)
28
- *  2005-03-02  added fm_info() (andrei)
29
- *  2005-12-12  fixed realloc shrink real_used accounting (andrei)
30
- *              fixed initial size (andrei)
31
- *  2006-02-03  fixed realloc out of mem. free bug (andrei)
32
- *  2006-04-07  s/DBG/MDBG (andrei)
33
- *  2007-02-23  added fm_available() (andrei)
34
- *  2007-06-23  added hash bitmap (andrei)
35
- *  2009-09-28  added fm_sums() (patch from Dragos Vingarzan)
36
- *  2010-03-11  fix big fragments bug (smaller fragment was wrongly
37
- *               returned sometimes) (andrei)
38
- *  2010-03-12  fix real_used stats for realloc: a realloc that shrank an
39
- *               allocation accounted twice fro the frag. overhead (andrei)
40
- *  2010-09-30  fixed search for big fragments using the hash bitmap
41
- *               (only the first bucket was tried) (andrei)
42
- */
43 19
 
44 20
 /**
45 21
  * \file
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6 6
  * Permission to use, copy, modify, and distribute this software for any
7 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -16,17 +16,6 @@
16 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 17
  */
18 18
 
19
-/*
20
- * History:
21
- * --------
22
- *  2003-05-21  on sparc64 roundto 8 even in debugging mode (so malloc'ed
23
- *               long longs will be 64 bit aligned) (andrei)
24
- *  2004-07-19  support for 64 bit (2^64 mem. block) and more info
25
- *               for the future de-fragmentation support (andrei)
26
- *  2004-11-10  support for > 4Gb mem., switched to long (andrei)
27
- *  2007-06-23  added hash bitmap (andrei)
28
- */
29
-
30 19
 /**
31 20
  * \file
32 21
  * \brief Simple, very fast, malloc library
... ...
@@ -1,8 +1,9 @@
1
-/* $Id$
2
- *
1
+/*
3 2
  * shared memory, multi-process safe, pool based, mostly lockless version of 
4 3
  *  f_malloc
5 4
  *
5
+ * This file is part of Kamailio, a free SIP server.
6
+ *
6 7
  * Copyright (C) 2007 iptelorg GmbH
7 8
  *
8 9
  * Permission to use, copy, modify, and distribute this software for any
... ...
@@ -17,25 +18,6 @@
17 17
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 18
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 19
  */
20
-/*
21
- * History:
22
- * --------
23
- *              created by andrei
24
- *  2003-07-06  added fm_realloc (andrei)
25
- *  2004-07-19  fragments book keeping code and support for 64 bits
26
- *               memory blocks (64 bits machine & size >=2^32) 
27
- *              GET_HASH s/</<=/ (avoids waste of 1 hash cell)   (andrei)
28
- *  2004-11-10  support for > 4Gb mem., switched to long (andrei)
29
- *  2005-03-02  added fm_info() (andrei)
30
- *  2005-12-12  fixed realloc shrink real_used accounting (andrei)
31
- *              fixed initial size (andrei)
32
- *  2006-02-03  fixed realloc out of mem. free bug (andrei)
33
- *  2006-04-07  s/DBG/MDBG (andrei)
34
- *  2007-02-23  added fm_available() (andrei)
35
- *  2007-06-09  forked from the fm_maloc code (andrei)
36
- *  2007-06-11  forked from the sfm_maloc code (andrei)
37
- */
38
-
39 20
 
40 21
 #ifdef LL_MALLOC
41 22
 
... ...
@@ -1,8 +1,9 @@
1
-/* $Id$
2
- *
1
+/*
3 2
  * shared memory, multi-process safe, pool based, mostly lockless version of 
4 3
  *  f_malloc
5 4
  *
5
+ * This file is part of Kamailio, a free SIP server.
6
+ *
6 7
  * Copyright (C) 2007 iptelorg GmbH
7 8
  *
8 9
  * Permission to use, copy, modify, and distribute this software for any
... ...
@@ -17,17 +18,6 @@
17 17
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 18
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 19
  */
20
-/*
21
- * History:
22
- * --------
23
- *  2003-05-21  on sparc64 roundto 8 even in debugging mode (so malloc'ed
24
- *               long longs will be 64 bit aligned) (andrei)
25
- *  2004-07-19  support for 64 bit (2^64 mem. block) and more info
26
- *               for the future de-fragmentation support (andrei)
27
- *  2004-11-10  support for > 4Gb mem., switched to long (andrei)
28
- *  2007-06-11  forked from the sf_malloc code (andrei)
29
- */
30
-
31 20
 
32 21
 #if !defined(ll_malloc_h)  
33 22
 #define ll_malloc_h
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6 6
  * Permission to use, copy, modify, and distribute this software for any
7 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -16,10 +16,6 @@
16 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 17
  *
18 18
  *
19
- * History:
20
- * --------
21
- *  2003-04-08  init_mallocs split into init_{pkg,shm}_malloc (andrei)
22
- * 
23 19
  */
24 20
 
25 21
 /**
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6 6
  * Permission to use, copy, modify, and distribute this software for any
7 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -16,16 +16,6 @@
16 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 17
  */
18 18
 
19
-/*
20
- * History:
21
- * --------
22
- *  2003-03-10  __FUNCTION__ is a gcc-ism, defined it to "" for sun cc
23
- *               (andrei)
24
- *  2003-03-07  split init_malloc into init_pkg_mallocs & init_shm_mallocs 
25
- *               (andrei)
26
- *  2007-02-23   added pkg_info() and pkg_available() (andrei)
27
- */
28
-
29 19
 /**
30 20
  * \defgroup mem SIP-router memory manager
31 21
  * \brief  SIP-router internal memory manager
... ...
@@ -1,6 +1,8 @@
1 1
 /*
2 2
  * Copyright (C) 2006 iptelorg GmbH
3 3
  *
4
+ * This file is part of Kamailio, a free SIP server.
5
+ *
4 6
  * Permission to use, copy, modify, and distribute this software for any
5 7
  * purpose with or without fee is hereby granted, provided that the above
6 8
  * copyright notice and this permission notice appear in all copies.
... ...
@@ -14,12 +16,6 @@
14 14
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 15
  */
16 16
 
17
-/*
18
- * History:
19
- * --------
20
- *  2006-04-07             created by andrei
21
- */
22
-
23 17
 /**
24 18
  * \file
25 19
  * \brief Malloc debug messages
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6 6
  * Permission to use, copy, modify, and distribute this software for any
7 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -16,13 +16,6 @@
16 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 17
  */
18 18
 
19
-/*
20
- * History:
21
- * --------
22
- *  2005-03-02  created (andrei)
23
- *  2005-07-25  renamed meminfo to mem_info due to name conflict on solaris
24
- */
25
-
26 19
 /**
27 20
  * \file
28 21
  * \brief Memory manager (malloc) informations and statistics
... ...
@@ -1,9 +1,7 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2001-2003 FhG Fokus
5 3
  *
6
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
7 5
  *
8 6
  * Permission to use, copy, modify, and distribute this software for any
9 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6 6
  * Permission to use, copy, modify, and distribute this software for any
7 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -16,25 +16,6 @@
16 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 17
  */
18 18
 
19
-/*
20
- * History:
21
- * --------
22
- *  ????-??-??  created by andrei
23
- *  2003-04-14  more debugging added in DBG_QM_MALLOC mode (andrei)
24
- *  2003-06-29  added qm_realloc (andrei)
25
- *  2004-07-19  fragments book keeping code and support for 64 bits
26
- *               memory blocks (64 bits machine & size>=2^32) (andrei)
27
- *              GET_HASH s/</<=/ (avoids waste of 1 hash cell) (andrei)
28
- *  2004-11-10  support for > 4Gb mem., switched to long (andrei)
29
- *  2005-03-02  added qm_info() (andrei)
30
- *  2005-12-12  fixed realloc shrink real_used & used accounting;
31
- *              fixed initial size (andrei)
32
- *  2006-02-03  fixed realloc out of mem. free bug (andrei)
33
- *  2006-04-07  s/DBG/MDBG (andrei)
34
- *  2007-02-23  added fm_available() (andrei)
35
- *  2009-09-28  added fm_sums() (patch from Dragos Vingarzan)
36
- */
37
-
38 19
 /**
39 20
  * \file
40 21
  * \brief Simple & fast malloc library
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6 6
  * Permission to use, copy, modify, and distribute this software for any
7 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -16,16 +16,6 @@
16 16
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 17
  */
18 18
 
19
-/*
20
- * History:
21
- * --------
22
- *  2003-05-21  on sparc64 roundto 8 even in debugging mode (so malloc'ed
23
- *               long longs will be 64 bit aligned) (andrei)
24
- *  2004-07-19  support for 64 bit (2^64 mem. block) and more info
25
- *               for the future de-fragmentation support (andrei)
26
- *  2004-11-10  support for > 4Gb mem. (switched to long) (andrei)
27
- */
28
-
29 19
 /**
30 20
  * \file
31 21
  * \brief Simple & fast malloc library
... ...
@@ -1,7 +1,8 @@
1
-/* $Id$
2
- *
1
+/*
3 2
  * shared memory, multi-process safe, pool based version of f_malloc
4 3
  *
4
+ * This file is part of Kamailio, a free SIP server.
5
+ *
5 6
  * Copyright (C) 2007 iptelorg GmbH
6 7
  *
7 8
  * Permission to use, copy, modify, and distribute this software for any
... ...
@@ -16,24 +17,6 @@
16 16
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 17
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 18
  */
19
-/*
20
- * History:
21
- * --------
22
- *              created by andrei
23
- *  2003-07-06  added fm_realloc (andrei)
24
- *  2004-07-19  fragments book keeping code and support for 64 bits
25
- *               memory blocks (64 bits machine & size >=2^32) 
26
- *              GET_HASH s/</<=/ (avoids waste of 1 hash cell)   (andrei)
27
- *  2004-11-10  support for > 4Gb mem., switched to long (andrei)
28
- *  2005-03-02  added fm_info() (andrei)
29
- *  2005-12-12  fixed realloc shrink real_used accounting (andrei)
30
- *              fixed initial size (andrei)
31
- *  2006-02-03  fixed realloc out of mem. free bug (andrei)
32
- *  2006-04-07  s/DBG/MDBG (andrei)
33
- *  2007-02-23  added fm_available() (andrei)
34
- *  2007-06-09  forked from the fm_maloc code (andrei)
35
- */
36
-
37 19
 
38 20
 #ifdef SF_MALLOC
39 21
 
... ...
@@ -1,7 +1,8 @@
1
-/* $Id$
2
- *
1
+/*
3 2
  * shared memory, multi-process safe, pool based version of f_malloc
4 3
  *
4
+ * This file is part of Kamailio, a free SIP server.
5
+ *
5 6
  * Copyright (C) 2007 iptelorg GmbH
6 7
  *
7 8
  * Permission to use, copy, modify, and distribute this software for any
... ...
@@ -16,16 +17,6 @@
16 16
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 17
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 18
  */
19
-/*
20
- * History:
21
- * --------
22
- *  2003-05-21  on sparc64 roundto 8 even in debugging mode (so malloc'ed
23
- *               long longs will be 64 bit aligned) (andrei)
24
- *  2004-07-19  support for 64 bit (2^64 mem. block) and more info
25
- *               for the future de-fragmentation support (andrei)
26
- *  2004-11-10  support for > 4Gb mem., switched to long (andrei)
27
- *  2007-06-09  forked from the f_malloc code (andrei)
28
- */
29 19
 
30 20
 
31 21
 #if !defined(sf_malloc_h)  
... ...
@@ -1,9 +1,7 @@
1 1
 /*
2
-
3
- *
4 2
  * Copyright (C) 2001-2003 FhG Fokus
5 3
  *
6
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
7 5
  *
8 6
  * Permission to use, copy, modify, and distribute this software for any
9 7
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -18,16 +16,6 @@
18 18
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 19
  */
20 20
 
21
-/*
22
- * History:
23
- * --------
24
- *  2003-03-12  split shm_mem_init in shm_getmem & shm_mem_init_mallocs
25
- *               (andrei)
26
- *  2004-07-27  ANON mmap support, needed on darwin (andrei)
27
- *  2004-09-19  shm_mem_destroy: destroy first the lock & then unmap (andrei)
28
- *  2007-06-10   support for sfm_malloc & shm_malloc_destroy() (andrei)
29
- */
30
-
31 21
 /**
32 22
  * \file
33 23
  * \brief  Shared memory functions
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6
- * This file is part of sip-router, a free SIP server.
6
+ * This file is part of Kamailio, a free SIP server.
7 7
  *
8 8
  * Permission to use, copy, modify, and distribute this software for any
9 9
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -18,16 +18,6 @@
18 18
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 19
  */
20 20
 
21
-/*
22
- * History:
23
- * --------
24
- *  2003-06-29  added shm_realloc & replaced shm_resize (andrei)
25
- *  2003-11-19  reverted shm_resize to the old version, using
26
- *               realloc causes terrible fragmentation  (andrei)
27
- *  2005-03-02   added shm_info() & re-eneabled locking on shm_status (andrei)
28
- *  2007-02-23   added shm_available() (andrei)
29
- *  2007-06-10   support for sf_malloc (andrei)
30
- */
31 21
 
32 22
 /**
33 23
  * \file
... ...
@@ -1,6 +1,8 @@
1 1
 /* 
2 2
  * Copyright (C) 2009 iptelorg GmbH
3 3
  *
4
+ * This file is part of Kamailio, a free SIP server.
5
+ *
4 6
  * Permission to use, copy, modify, and distribute this software for any
5 7
  * purpose with or without fee is hereby granted, provided that the above
6 8
  * copyright notice and this permission notice appear in all copies.
... ...
@@ -14,12 +16,6 @@
14 14
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 15
  */
16 16
 
17
-/*
18
- * History:
19
- * --------
20
- *  2009-10-08  initial version (andrei)
21
-*/
22
-
23 17
 /**
24 18
  * \file
25 19
  * \brief Helper definitions for internal memory manager