| 706 | } |
| 707 | |
| 708 | void |
| 709 | tcaches_flush(tsd_t *tsd, unsigned ind) { |
| 710 | malloc_mutex_lock(tsd_tsdn(tsd), &tcaches_mtx); |
| 711 | tcache_t *tcache = tcaches_elm_remove(tsd, &tcaches[ind], true); |
| 712 | malloc_mutex_unlock(tsd_tsdn(tsd), &tcaches_mtx); |
| 713 | if (tcache != NULL) { |
| 714 | /* Destroy the tcache; recreate in tcaches_get() if needed. */ |
| 715 | tcache_destroy(tsd, tcache, false); |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | void |
| 720 | tcaches_destroy(tsd_t *tsd, unsigned ind) { |
no test coverage detected