projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: tolerate longer chain length
[urcu.git]
/
rculfhash.c
diff --git
a/rculfhash.c
b/rculfhash.c
index 606f46e904b2fde4e0c3f4be1e66d5e5a437929d..6941ec189df941ca7fe71616d50d57c2dc8b8aa5 100644
(file)
--- a/
rculfhash.c
+++ b/
rculfhash.c
@@
-46,8
+46,8
@@
#define dbg_printf(args...)
#endif
#define dbg_printf(args...)
#endif
-#define CHAIN_LEN_TARGET
1
-#define CHAIN_LEN_RESIZE_THRESHOLD
2
+#define CHAIN_LEN_TARGET
4
+#define CHAIN_LEN_RESIZE_THRESHOLD
8
#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
#ifndef max
#define max(a, b) ((a) > (b) ? (a) : (b))
@@
-290,7
+290,7
@@
void check_resize(struct rcu_ht *ht, struct rcu_table *t,
chain_len);
if (chain_len >= CHAIN_LEN_RESIZE_THRESHOLD)
ht_resize_lazy(ht, t,
chain_len);
if (chain_len >= CHAIN_LEN_RESIZE_THRESHOLD)
ht_resize_lazy(ht, t,
- get_count_order_u32(chain_len -
CHAIN_LEN_TARGET + 1
));
+ get_count_order_u32(chain_len -
(CHAIN_LEN_TARGET - 1)
));
}
static
}
static
This page took
0.023414 seconds
and
4
git commands to generate.