count_reader = malloc(sizeof(*count_reader) * nr_readers);
count_writer = malloc(sizeof(*count_writer) * nr_writers);
- printf("Allocating Judy Array for ranges\n");
- test_ja = cds_ja_range_new();
+ printf("Allocating %u-bit Judy Array for ranges\n",
+ key_bits);
+ test_ja = cds_ja_range_new(key_bits);
if (!test_ja) {
printf("Error allocating judy array.\n");
ret = -1;
}
rcu_thread_online_qsbr();
+ ret = cds_ja_range_validate(test_ja);
+ assert(!ret);
+
ret = cds_ja_range_destroy(test_ja, NULL);
if (ret) {
fprintf(stderr, "Error destroying judy array\n");