diff options
author | Corey Farrell <git@cfware.com> | 2016-10-07 18:32:16 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2016-10-07 18:32:16 -0400 |
commit | dd873bcada4e257ba8e8b497b1a36036b09f5635 (patch) | |
tree | 363eb368b634bd78ce525a4d1f76c5448b9ef797 /main/astobj2_hash.c | |
parent | f166681c121265b92a9091bdafab9980c086b9d2 (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_hash.c')
-rw-r--r-- | main/astobj2_hash.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/astobj2_hash.c b/main/astobj2_hash.c index 341ff79e0..f5c678740 100644 --- a/main/astobj2_hash.c +++ b/main/astobj2_hash.c @@ -186,7 +186,9 @@ static void hash_ao2_node_destructor(void *v_doomed) * same node. */ my_container = (struct ao2_container_hash *) doomed->common.my_container; - ast_assert(is_ao2_object(my_container)); +#if defined(AST_DEVMODE) + is_ao2_object(my_container); +#endif __adjust_lock(my_container, AO2_LOCK_REQ_WRLOCK, 1); |