| 65 | } |
| 66 | |
| 67 | bool |
| 68 | bin_init(bin_t *bin) { |
| 69 | if (malloc_mutex_init(&bin->lock, "bin", WITNESS_RANK_BIN, |
| 70 | malloc_mutex_rank_exclusive)) { |
| 71 | return true; |
| 72 | } |
| 73 | bin->slabcur = NULL; |
| 74 | extent_heap_new(&bin->slabs_nonfull); |
| 75 | extent_list_init(&bin->slabs_full); |
| 76 | if (config_stats) { |
| 77 | memset(&bin->stats, 0, sizeof(bin_stats_t)); |
| 78 | } |
| 79 | return false; |
| 80 | } |
| 81 | |
| 82 | void |
| 83 | bin_prefork(tsdn_t *tsdn, bin_t *bin) { |
no test coverage detected