Fix: test initial population needs QS
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 26 Jun 2013 20:02:57 +0000 (16:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 26 Jun 2013 20:02:57 +0000 (16:02 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_ja.c
tests/test_urcu_ja_range.c

index 7de723e1db203e2e8abfd4e15cc8c91888625d9f..8c7e7277019edfe33570e5e9df897eebbeff5f68 100644 (file)
@@ -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);
index b0f2fe405a9121a9cbff91b05fe84fa61b58caaa..18f36d5f4d9826993b8480c5294dcc17b7651c06 100644 (file)
@@ -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);
This page took 0.027678 seconds and 4 git commands to generate.