From: Mathieu Desnoyers Date: Wed, 3 Mar 2010 14:08:30 +0000 (-0500) Subject: urcu-bp: reset ctr to 0 upon garbage collection X-Git-Tag: v0.4.2~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=79266051c59604c3923944d8003f8a9d2ad3c08b;p=urcu.git urcu-bp: reset ctr to 0 upon garbage collection Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-bp.c b/urcu-bp.c index 1b0bd69..3af7c3b 100644 --- a/urcu-bp.c +++ b/urcu-bp.c @@ -300,6 +300,7 @@ static void rcu_gc_registry(void) assert(ret != EINVAL); if (ret == ESRCH) { list_del(&rcu_reader_reg->head); + rcu_reader_reg->ctr = 0; rcu_reader_reg->alloc = 0; registry_arena.used -= sizeof(struct rcu_reader); }