diff options
author | Corey Farrell <git@cfware.com> | 2016-09-16 19:54:07 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-09-30 19:25:40 -0400 |
commit | 2a03575c30b96ab23e75822c3b256fa0cb591aaa (patch) | |
tree | de4f50f0fe625ed866efd337b5f60f8c711a1f52 /main/astobj2_rbtree.c | |
parent | 224c2952922d769af2d0e77da5612b8b7a649b42 (diff) |
astobj2: Add backtrace to log_bad_ao2.
* Compile __ast_assert_failed unconditionally.
* Use __ast_assert_failed to log messages from log_bad_ao2
* Remove calls to ast_assert(0) that happen after log_bad_ao2 was run.
Change-Id: I48f1af44b2718ad74a421ff75cb6397b924a9751
Diffstat (limited to 'main/astobj2_rbtree.c')
-rw-r--r-- | main/astobj2_rbtree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/astobj2_rbtree.c b/main/astobj2_rbtree.c index 03efd886f..1760938fc 100644 --- a/main/astobj2_rbtree.c +++ b/main/astobj2_rbtree.c @@ -858,7 +858,9 @@ static void rb_ao2_node_destructor(void *v_doomed) * same node. */ my_container = (struct ao2_container_rbtree *) doomed->common.my_container; - ast_assert(is_ao2_object(my_container)); +#ifdef AST_DEVMODE + is_ao2_object(my_container); +#endif __adjust_lock(my_container, AO2_LOCK_REQ_WRLOCK, 1); |