[OpenSIPS-Devel] [OpenSIPS/opensips] c8804d: OPS-6: Major allocator rework - F_MALLOC is functi...

Liviu Chircu noreply at github.com
Wed Mar 13 10:18:13 EDT 2019


  Branch: refs/heads/feature/selectable-allocator
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c8804d280d3f603e6846bdeaba501a5ebdcaafab
      https://github.com/OpenSIPS/opensips/commit/c8804d280d3f603e6846bdeaba501a5ebdcaafab
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-03-13 (Wed, 13 Mar 2019)

  Changed paths:
    M Makefile.conf.template
    A mem/common.c
    M mem/common.h
    M mem/f_malloc.c
    M mem/f_malloc.h
    A mem/f_malloc_dyn.h
    M mem/mem.c
    M mem/mem.h
    M mem/shm_mem.c
    M mem/shm_mem.h
    M modules/lua/sipstate.c

  Log Message:
  -----------
  OPS-6: Major allocator rework - F_MALLOC is functional

The purpose of this rework is to be able to do the following:
    * be able to compile an inlined allocator
	(same performance as now, same binary footprint)
    * be able to compile an inlined, dbg allocator
	(same dbg performance as now, same larger binary footprint)
    * be able to compile multiple allocators
	(a bit slower, somewhat flexible, larger+ binary footprint)
    * be able to compile multiple, dbg allocators
	(even slower, most flexible: 3 allocators + 3 dbg allocators,
	    larger++ binary footprint)

This commit creates the framework for the above.  QM_MALLOC and
HP_MALLOC are currently completely broken, but F_MALLOC inlining is
working well, with or w/o DBG_MALLOC.


  Commit: af1f013425ac1cb95e321a17543f9ffd7ceadcf5
      https://github.com/OpenSIPS/opensips/commit/af1f013425ac1cb95e321a17543f9ffd7ceadcf5
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-03-13 (Wed, 13 Mar 2019)

  Changed paths:
    M mem/f_malloc.h
    M mem/f_malloc_dyn.h
    M mem/q_malloc.c
    M mem/q_malloc.h
    A mem/qm_malloc_dyn.h

  Log Message:
  -----------
  OPS-6:  QM_MALLOC is once again functional


Compare: https://github.com/OpenSIPS/opensips/compare/4e230863fe82...af1f013425ac



More information about the Devel mailing list