| 2169 | } |
| 2170 | |
| 2171 | static void |
| 2172 | arena_reset_finish_background_thread(tsd_t *tsd, unsigned arena_ind) { |
| 2173 | if (have_background_thread) { |
| 2174 | if (background_thread_enabled()) { |
| 2175 | background_thread_info_t *info = |
| 2176 | background_thread_info_get(arena_ind); |
| 2177 | assert(info->state == background_thread_paused); |
| 2178 | malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); |
| 2179 | info->state = background_thread_started; |
| 2180 | malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx); |
| 2181 | } |
| 2182 | malloc_mutex_unlock(tsd_tsdn(tsd), &background_thread_lock); |
| 2183 | } |
| 2184 | } |
| 2185 | |
| 2186 | static int |
| 2187 | arena_i_reset_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, |
no test coverage detected