From: Mathieu Desnoyers Date: Wed, 26 Jun 2013 20:02:57 +0000 (-0400) Subject: Fix: test initial population needs QS X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=012ca80dc6218df4ba0d1346ad6124e719cef4b0;p=userspace-rcu.git Fix: test initial population needs QS Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_ja.c b/tests/test_urcu_ja.c index 7de723e..8c7e727 100644 --- a/tests/test_urcu_ja.c +++ b/tests/test_urcu_ja.c @@ -1033,6 +1033,9 @@ int do_mt_populate_ja(void) URCU_TLS(nr_add)++; URCU_TLS(nr_writes)++; rcu_read_unlock(); + /* Hash table resize only occurs in call_rcu thread */ + if (!(iter % 100)) + rcu_quiescent_state(); if (ret) { fprintf(stderr, "Error (%d) adding node %" PRIu64 "\n", ret, key); diff --git a/tests/test_urcu_ja_range.c b/tests/test_urcu_ja_range.c index b0f2fe4..18f36d5 100644 --- a/tests/test_urcu_ja_range.c +++ b/tests/test_urcu_ja_range.c @@ -383,6 +383,9 @@ int do_mt_populate_ja(void) URCU_TLS(nr_add)++; URCU_TLS(nr_writes)++; rcu_read_unlock(); + /* Hash table resize only occurs in call_rcu thread */ + if (!(iter % 100)) + rcu_quiescent_state(); if (ret) { fprintf(stderr, "Error (%d) adding range %" PRIu64 "\n", ret, key);