Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/adt/cht.c

    r04552324 r8f9c808  
    526526        ASSERT(op && op->hash && op->key_hash && op->equal && op->key_equal);
    527527        /* Memoized hashes are stored in the rcu_link.func function pointer. */
    528         ASSERT(sizeof(size_t) == sizeof(rcu_func_t));
     528        STATIC_ASSERT(sizeof(size_t) == sizeof(rcu_func_t));
    529529        ASSERT(sentinel.hash == (uintptr_t)sentinel.rcu_link.func);
    530530
     
    13111311                }
    13121312        } else {
    1313                 ASSERT(N_JOIN == N_JOIN_FOLLOWS);
     1313                STATIC_ASSERT(N_JOIN == N_JOIN_FOLLOWS);
    13141314               
    13151315                /* Keep the N_JOIN/N_JOIN_FOLLOWS mark but strip N_DELETED. */
     
    18901890        /* See comment in split_bucket(). */
    18911891       
    1892         bool done;
     1892        bool done = false;
     1893
    18931894        do {
    18941895                bool resizing = false;
     
    20602061        cht_link_t *join_node, size_t split_hash)
    20612062{
    2062         bool done;
     2063        bool done = false;
     2064
    20632065        do {
    20642066                wnd_t wnd = {
     
    21612163#endif
    21622164
    2163         bool done;
     2165        bool done = false;
     2166
    21642167        do {
    2165                 /* Load the most recent  h->item_cnt. */
     2168                /* Load the most recent h->item_cnt. */
    21662169                read_barrier();
    21672170                size_t cur_items = (size_t) atomic_get(&h->item_cnt);
Note: See TracChangeset for help on using the changeset viewer.