mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
core: Disable astobj2 locking for some common objects.
* ACO options * Indications * Module loader ref_debug object * Media index info and variants * xmldoc items These allocation locations were identified using reflocks.py on the master branch. Change-Id: Ie999b9941760be3d1946cdb6e30cb85fd97504d8
This commit is contained in:
@@ -554,7 +554,7 @@ void ast_module_register(const struct ast_module_info *info)
|
||||
|
||||
mod->info = info;
|
||||
if (ast_opt_ref_debug) {
|
||||
mod->ref_debug = ao2_t_alloc(0, NULL, info->name);
|
||||
mod->ref_debug = ao2_t_alloc_options(0, NULL, AO2_ALLOC_OPT_LOCK_NOLOCK, info->name);
|
||||
}
|
||||
AST_LIST_HEAD_INIT(&mod->users);
|
||||
AST_VECTOR_INIT(&mod->requires, 0);
|
||||
|
Reference in New Issue
Block a user