[OpenSIPS/opensips] ea959e: OPS-6 (Selectable Allocator): Clean up VQ_MALLOC

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSIPS/opensips] ea959e: OPS-6 (Selectable Allocator): Clean up VQ_MALLOC

Dan Pascu-2
  Branch: refs/heads/feature/selectable-allocator
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ea959e19a94b93b75c0871d2c92a25d5e2f101ea
      https://github.com/OpenSIPS/opensips/commit/ea959e19a94b93b75c0871d2c92a25d5e2f101ea
  Author: Liviu Chircu <[hidden email]>
  Date:   2019-03-11 (Mon, 11 Mar 2019)

  Changed paths:
    M Makefile.conf.template
    M Makefile.defs
    M mem/common.h
    M mem/f_malloc.c
    M mem/f_malloc.h
    M mem/hp_malloc.c
    M mem/hp_malloc.h
    M mem/hp_malloc_stats.c
    M mem/mem.c
    M mem/mem.h
    M mem/memtest.c
    M mem/q_malloc.c
    M mem/q_malloc.h
    M mem/shm_mem.c
    M mem/shm_mem.h
    R mem/vq_malloc.c
    R mem/vq_malloc.h
    M packaging/debian/copyright
    M version.h

  Log Message:
  -----------
  OPS-6 (Selectable Allocator): Clean up VQ_MALLOC

This allocator is both unmaintained and non-functional for several
years now.


  Commit: 4e230863fe821fe2c48ad82afb68bbe520bbc28f
      https://github.com/OpenSIPS/opensips/commit/4e230863fe821fe2c48ad82afb68bbe520bbc28f
  Author: Liviu Chircu <[hidden email]>
  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 - minimal binary footprint)
    * be able to compile an inlined, dbg allocator
        (same dbg performance as now - larger binary footprint)
    * be able to compile multiple allocators
        (a bit slower, somewhat flexible, larger+ binary footprint)
    * be able to compile multiple, dbg allocators
        (just-as-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 completely broken, but F_MALLOC inlining is working well,
with or w/o DBG_MALLOC.


Compare: https://github.com/OpenSIPS/opensips/compare/ea959e19a94b%5E...4e230863fe82

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel