[OpenSIPS-Devel] [OpenSIPS/opensips] cb8d11: shm-extra-stats: bug fix

Răzvan Crainea razvan at opensips.org
Fri Jan 13 08:49:08 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cb8d111ddb6a7e5c0c73b84bf03b942941092f22
      https://github.com/OpenSIPS/opensips/commit/cb8d111ddb6a7e5c0c73b84bf03b942941092f22
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-10 (Tue, 10 Jan 2017)

  Changed paths:
    M mem/f_malloc.c
    M mem/f_malloc.h
    M mem/hp_malloc.c
    M mem/hp_malloc.h
    M mem/q_malloc.c
    M mem/q_malloc.h
    M mem/shm_mem.h

  Log Message:
  -----------
  shm-extra-stats: bug fix

-when memory was allocated from a module and freed from another module (or the core)
the module shared memory statistics didnt properly reflect that and a underflow was
generated
-added a index in every memory fragment that indicates the module where it was allocated
so the free will decrease the statistic of the same module


  Commit: 9766d69ea013efbbfebebc31ff78ce8d26b58806
      https://github.com/OpenSIPS/opensips/commit/9766d69ea013efbbfebebc31ff78ce8d26b58806
  Author: Cerghit Ionel <ionel.cerghit at gmail.com>
  Date:   2017-01-11 (Wed, 11 Jan 2017)

  Changed paths:
    M mem/f_malloc.c
    M mem/hp_malloc.c
    M mem/module_info.c
    M mem/shm_mem.c
    M mem/shm_mem.h

  Log Message:
  -----------
  module_shm_stats: change initialization values

when the first group is created if the 'core' or the default
group is defined the values are initialized with the ones stored
int the shm_block structures

fix compile warning in *_malloc.c (pointers inot casted)


  Commit: bbd95b5b23a1919ccfae8e4304b115690e2642c9
      https://github.com/OpenSIPS/opensips/commit/bbd95b5b23a1919ccfae8e4304b115690e2642c9
  Author: Răzvan Crainea <razvan at opensips.org>
  Date:   2017-01-13 (Fri, 13 Jan 2017)

  Changed paths:
    M mem/f_malloc.c
    M mem/f_malloc.h
    M mem/hp_malloc.c
    M mem/hp_malloc.h
    M mem/module_info.c
    M mem/q_malloc.c
    M mem/q_malloc.h
    M mem/shm_mem.c
    M mem/shm_mem.h

  Log Message:
  -----------
  Merge pull request #1016 from ionel-cerghit/shm-groups-update

Shm groups update


Compare: https://github.com/OpenSIPS/opensips/compare/755bec913959...bbd95b5b23a1


More information about the Devel mailing list