mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +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:
@@ -2290,7 +2290,9 @@ static struct ast_xml_doc_item *ast_xml_doc_item_alloc(const char *name, const c
|
||||
{
|
||||
struct ast_xml_doc_item *item;
|
||||
|
||||
if (!(item = ao2_alloc(sizeof(*item), ast_xml_doc_item_destructor))) {
|
||||
item = ao2_alloc_options(sizeof(*item), ast_xml_doc_item_destructor,
|
||||
AO2_ALLOC_OPT_LOCK_NOLOCK);
|
||||
if (!item) {
|
||||
ast_log(AST_LOG_ERROR, "Failed to allocate memory for ast_xml_doc_item instance\n");
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user