Changes in kernel/generic/src/adt/cht.c [f303afc6:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/cht.c
rf303afc6 ra35b458 296 296 #include <atomic.h> 297 297 #include <synch/rcu.h> 298 299 #ifdef CONFIG_DEBUG 300 /* Do not enclose in parentheses. */ 301 #define DBG(x) x 302 #else 303 #define DBG(x) 304 #endif 298 305 299 306 /* Logarithm of the min bucket count. Must be at least 3. 2^6 == 64 buckets. */ … … 1754 1761 cht_link_t *next = get_next(*psrc_head); 1755 1762 1756 #ifdef CONFIG_DEBUG 1757 marked_ptr_t ret = 1758 #endif 1759 cas_link(pdest_head, &sentinel, N_INVALID, next, N_NORMAL); 1763 DBG(marked_ptr_t ret = ) 1764 cas_link(pdest_head, &sentinel, N_INVALID, next, N_NORMAL); 1760 1765 assert(ret == make_link(&sentinel, N_INVALID) || (N_NORMAL == get_mark(ret))); 1761 1766 cas_order_barrier(); 1762 1767 1763 #ifdef CONFIG_DEBUG 1764 ret = 1765 #endif 1766 cas_link(psrc_head, next, N_CONST, next, N_INVALID); 1768 DBG(ret = ) 1769 cas_link(psrc_head, next, N_CONST, next, N_INVALID); 1767 1770 assert(ret == make_link(next, N_CONST) || (N_INVALID == get_mark(ret))); 1768 1771 cas_order_barrier(); … … 1856 1859 1857 1860 /* Link the dest head to the second part of the split. */ 1858 #ifdef CONFIG_DEBUG 1859 marked_ptr_t ret = 1860 #endif 1861 cas_link(pdest_head, &sentinel, N_INVALID, wnd.cur, N_NORMAL); 1861 DBG(marked_ptr_t ret = ) 1862 cas_link(pdest_head, &sentinel, N_INVALID, wnd.cur, N_NORMAL); 1862 1863 assert(ret == make_link(&sentinel, N_INVALID) || (N_NORMAL == get_mark(ret))); 1863 1864 cas_order_barrier(); … … 2039 2040 } 2040 2041 2041 #ifdef CONFIG_DEBUG 2042 marked_ptr_t ret = 2043 #endif 2044 cas_link(psrc_head, join_node, N_CONST, join_node, N_INVALID); 2042 DBG(marked_ptr_t ret = ) 2043 cas_link(psrc_head, join_node, N_CONST, join_node, N_INVALID); 2045 2044 assert(ret == make_link(join_node, N_CONST) || (N_INVALID == get_mark(ret))); 2046 2045 cas_order_barrier();
Note:
See TracChangeset
for help on using the changeset viewer.