| 717 | } |
| 718 | |
| 719 | void |
| 720 | tcaches_destroy(tsd_t *tsd, unsigned ind) { |
| 721 | malloc_mutex_lock(tsd_tsdn(tsd), &tcaches_mtx); |
| 722 | tcaches_t *elm = &tcaches[ind]; |
| 723 | tcache_t *tcache = tcaches_elm_remove(tsd, elm, false); |
| 724 | elm->next = tcaches_avail; |
| 725 | tcaches_avail = elm; |
| 726 | malloc_mutex_unlock(tsd_tsdn(tsd), &tcaches_mtx); |
| 727 | if (tcache != NULL) { |
| 728 | tcache_destroy(tsd, tcache, false); |
| 729 | } |
| 730 | } |
| 731 | |
| 732 | bool |
| 733 | tcache_boot(tsdn_t *tsdn) { |
no test coverage detected