From: Mathieu Desnoyers Date: Thu, 30 May 2013 20:05:51 +0000 (-0400) Subject: rcuja test: destroy should be done online X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=88e115c335864a66b2012602073af8c36aaeff4a;p=userspace-rcu.git rcuja test: destroy should be done online Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_ja.c b/tests/test_urcu_ja.c index 50f94cc..bad6784 100644 --- a/tests/test_urcu_ja.c +++ b/tests/test_urcu_ja.c @@ -836,13 +836,13 @@ int do_mt_test(void) tot_add_exist += count_writer[i].add_exist; tot_remove += count_writer[i].remove; } + rcu_thread_online_qsbr(); ret = cds_ja_destroy(test_ja, free_node_cb); if (ret) { fprintf(stderr, "Error destroying judy array\n"); goto end; } - rcu_thread_online_qsbr(); free(tid_reader); free(tid_writer);