Changes in kernel/generic/src/adt/cht.c [8f9c808:04552324] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/cht.c
r8f9c808 r04552324 526 526 ASSERT(op && op->hash && op->key_hash && op->equal && op->key_equal); 527 527 /* Memoized hashes are stored in the rcu_link.func function pointer. */ 528 STATIC_ASSERT(sizeof(size_t) == sizeof(rcu_func_t));528 ASSERT(sizeof(size_t) == sizeof(rcu_func_t)); 529 529 ASSERT(sentinel.hash == (uintptr_t)sentinel.rcu_link.func); 530 530 … … 1311 1311 } 1312 1312 } else { 1313 STATIC_ASSERT(N_JOIN == N_JOIN_FOLLOWS);1313 ASSERT(N_JOIN == N_JOIN_FOLLOWS); 1314 1314 1315 1315 /* Keep the N_JOIN/N_JOIN_FOLLOWS mark but strip N_DELETED. */ … … 1890 1890 /* See comment in split_bucket(). */ 1891 1891 1892 bool done = false; 1893 1892 bool done; 1894 1893 do { 1895 1894 bool resizing = false; … … 2061 2060 cht_link_t *join_node, size_t split_hash) 2062 2061 { 2063 bool done = false; 2064 2062 bool done; 2065 2063 do { 2066 2064 wnd_t wnd = { … … 2163 2161 #endif 2164 2162 2165 bool done = false; 2166 2163 bool done; 2167 2164 do { 2168 /* Load the most recent h->item_cnt. */2165 /* Load the most recent h->item_cnt. */ 2169 2166 read_barrier(); 2170 2167 size_t cur_items = (size_t) atomic_get(&h->item_cnt);
Note:
See TracChangeset
for help on using the changeset viewer.