Remote mutex from RCU write-side
[urcu.git] / test_urcu_gc.c
index 66b714ba072f786e1bc519382543e036f03df50a..6d7d8ca53a10088283d5c0843ab3c0b22bff203c 100644 (file)
@@ -265,13 +265,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()))
This page took 0.022169 seconds and 4 git commands to generate.