projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow tests to run on architectures without per-cpu call_rcu support
[userspace-rcu.git]
/
tests
/
test_urcu_hash.c
diff --git
a/tests/test_urcu_hash.c
b/tests/test_urcu_hash.c
index c8d8a89b411c4679b1e042f329571e2497f96aeb..aac1db88cbc2a09425d87f3ef12adf6e54423161 100644
(file)
--- a/
tests/test_urcu_hash.c
+++ b/
tests/test_urcu_hash.c
@@
-1015,7
+1015,9
@@
int main(int argc, char **argv)
count_writer = malloc(sizeof(*count_writer) * nr_writers);
err = create_all_cpu_call_rcu_data(0);
count_writer = malloc(sizeof(*count_writer) * nr_writers);
err = create_all_cpu_call_rcu_data(0);
- assert(!err);
+ if (err) {
+ printf("Per-CPU call_rcu() worker threads unavailable. Using default global worker thread.\n");
+ }
if (memory_backend) {
test_ht = _cds_lfht_new(init_hash_size, min_hash_alloc_size,
if (memory_backend) {
test_ht = _cds_lfht_new(init_hash_size, min_hash_alloc_size,
This page took
0.025367 seconds
and
4
git commands to generate.