Skip to content

Commit

Permalink
Merge pull request #2233 from hoopoepg/topic/arbitrator-better-assert
Browse files Browse the repository at this point in the history
UCP/ARBITRATOR: better asserts
  • Loading branch information
yosefe authored Jan 31, 2018
2 parents c5ce029 + 37e8e0b commit 9649dad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ucs/datastruct/arbiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ void ucs_arbiter_dispatch_nonempty(ucs_arbiter_t *arbiter, unsigned per_group,

do {
group_head = next_group;
ucs_assert(group_head != NULL);
prev_group = ucs_list_prev(&group_head->list, ucs_arbiter_elem_t, list);
next_group = ucs_list_next(&group_head->list, ucs_arbiter_elem_t, list);
ucs_assert(prev_group != NULL);
ucs_assert(next_group != NULL);
ucs_assert(prev_group->list.next == &group_head->list);
ucs_assert(next_group->list.prev == &group_head->list);

Expand Down

0 comments on commit 9649dad

Please sign in to comment.