core: Stop using AST_INLINE_API for allocator functions.
This replaces AST_INLINE_API allocators in utils.h with real functions implemented in astmm.c. Associated macro's are also moved from utils.h to astmm.h. Remove menuselect conflicts between MALLOC_DEBUG and DEBUG_CHAOS as they can now be combined. This has multiple benefits: * Simplifies asterisk/utils.h by removing inline functions and use of the logger. * Removal of these inline functions decreases size of Asterisk and module binaries by 1% or more. * Puts memory management functions together with and without MALLOC_DEBUG enabled, simplifying management of the code. * Enables DEBUG_CHAOS for ASTMM_REDIRECT and bundled pjproject. Change-Id: If9df4377f74bdbb627461b27a473123e05525887
Showing
- build_tools/cflags.xml 0 additions, 2 deletionsbuild_tools/cflags.xml
- include/asterisk.h 0 additions, 3 deletionsinclude/asterisk.h
- include/asterisk/astmm.h 173 additions, 29 deletionsinclude/asterisk/astmm.h
- include/asterisk/utils.h 0 additions, 358 deletionsinclude/asterisk/utils.h
- main/astmm.c 190 additions, 28 deletionsmain/astmm.c
- third-party/pjproject/patches/asterisk_malloc_debug.h 30 additions, 20 deletionsthird-party/pjproject/patches/asterisk_malloc_debug.h
- utils/.gitignore 1 addition, 0 deletionsutils/.gitignore
- utils/Makefile 10 additions, 7 deletionsutils/Makefile
- utils/ael_main.c 1 addition, 0 deletionsutils/ael_main.c
- utils/astman.c 1 addition, 0 deletionsutils/astman.c
- utils/check_expr.c 1 addition, 0 deletionsutils/check_expr.c
- utils/conf2ael.c 1 addition, 0 deletionsutils/conf2ael.c
- utils/extconf.c 1 addition, 220 deletionsutils/extconf.c
Loading
Please register or sign in to comment