| 127 | } |
| 128 | |
| 129 | static size_t |
| 130 | base_get_num_blocks(base_t *base, bool with_new_block) { |
| 131 | base_block_t *b = base->blocks; |
| 132 | assert(b != NULL); |
| 133 | |
| 134 | size_t n_blocks = with_new_block ? 2 : 1; |
| 135 | while (b->next != NULL) { |
| 136 | n_blocks++; |
| 137 | b = b->next; |
| 138 | } |
| 139 | |
| 140 | return n_blocks; |
| 141 | } |
| 142 | |
| 143 | static void |
| 144 | base_auto_thp_switch(tsdn_t *tsdn, base_t *base) { |
no outgoing calls
no test coverage detected