mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
core: Remove ABI effects of LOW_MEMORY.
This allows asterisk to compiled with LOW_MEMORY to load modules built without LOW_MEMORY. ASTERISK-26398 #close Change-Id: I24b78ac9493ab933b11087a8b6794f3c96d4872d
This commit is contained in:
@@ -56,7 +56,6 @@ void * attribute_malloc __ast_calloc(size_t num, size_t len, const char *file, i
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_THREADS
|
||||
#if !defined(LOW_MEMORY)
|
||||
#ifdef HAVE_BKTR
|
||||
void ast_store_lock_info(enum ast_lock_type type, const char *filename,
|
||||
int line_num, const char *func, const char *lock_name, void *lock_addr, struct ast_bt *bt);
|
||||
@@ -117,7 +116,6 @@ void ast_mark_lock_acquired(void *foo)
|
||||
{
|
||||
/* not a lot to do in a standalone w/o threading! */
|
||||
}
|
||||
#endif
|
||||
#endif /* DEBUG_THREADS */
|
||||
|
||||
|
||||
@@ -161,9 +159,7 @@ void parse_file(const char *fname);
|
||||
|
||||
void __ast_register_file(const char *file);
|
||||
void __ast_register_file(const char *file) { }
|
||||
#if !defined(LOW_MEMORY)
|
||||
int ast_add_profile(const char *x, uint64_t scale) { return 0;}
|
||||
#endif
|
||||
int ast_atomic_fetchadd_int_slow(volatile int *p, int v)
|
||||
{
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user