diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-02-19 00:02:51 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-02-19 00:02:51 +0300 |
commit | e7af919c070fee36d0b011069ff0484079a27103 (patch) | |
tree | 4b2eb8c5ce8784016d2c289cb35cd7070b17b5a2 | |
parent | 0a251d1acf5c2c23651e8fa312244780a150271b (diff) | |
download | libatomic_ops-e7af919c070fee36d0b011069ff0484079a27103.tar.gz |
Remove redundant assert in AO_stack_pop_explicit_aux_acquire
* src/atomic_ops_stack.c [AO_USE_ALMOST_LOCK_FREE]
(AO_stack_pop_explicit_aux_acquire): Remove assertion about i; replace
"First" to "first" in comment.
-rw-r--r-- | src/atomic_ops_stack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c index eae78c1..379adbf 100644 --- a/src/atomic_ops_stack.c +++ b/src/atomic_ops_stack.c @@ -198,12 +198,11 @@ AO_API AO_t *AO_stack_next_ptr(AO_t next) AO_pause(++j); } } - assert(i < AO_BL_SIZE); # ifndef AO_THREAD_SANITIZER assert(a -> AO_stack_bl[i] == first); /* No actual race with the above CAS. */ # endif - /* First is on the auxiliary black list. It may be removed by */ + /* first is on the auxiliary black list. It may be removed by */ /* another thread before we get to it, but a new insertion of x */ /* cannot be started here. Only we can remove it from the black */ /* list. We need to make sure that first is still the first entry */ |