X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=test_qsbr_gc.c;h=f38477ebf4281c4582d2433c21af3eff4f89f4f0;hb=4aa7451e29e7fc23cfbf7ba77c95041de9647872;hp=98094a6c80da23c90d738d9f11d8e29fa6e278bf;hpb=6af882baf4a7cc82167b8e1abba5d6c851e0e6e8;p=urcu.git diff --git a/test_qsbr_gc.c b/test_qsbr_gc.c index 98094a6..f38477e 100644 --- a/test_qsbr_gc.c +++ b/test_qsbr_gc.c @@ -264,13 +264,8 @@ void *thr_writer(void *data) for (;;) { new = malloc(sizeof(*new)); - rcu_copy_mutex_lock(); - old = test_rcu_pointer; - if (old) - assert(old->a == 8); new->a = 8; old = _rcu_xchg_pointer(&test_rcu_pointer, new); - rcu_copy_mutex_unlock(); rcu_gc_reclaim(wtidx, old); nr_writes++; if (unlikely(!test_duration_write()))