Lines Matching refs:bin_info
224 arena_slab_reg_alloc(extent_t *slab, const bin_info_t *bin_info) { in arena_slab_reg_alloc() argument
230 assert(!bitmap_full(slab_data->bitmap, &bin_info->bitmap_info)); in arena_slab_reg_alloc()
232 regind = bitmap_sfu(slab_data->bitmap, &bin_info->bitmap_info); in arena_slab_reg_alloc()
234 (uintptr_t)(bin_info->reg_size * regind)); in arena_slab_reg_alloc()
266 const bin_info_t *bin_info = &bin_infos[binind]; in arena_slab_reg_dalloc() local
269 assert(extent_nfree_get(slab) < bin_info->nregs); in arena_slab_reg_dalloc()
271 assert(bitmap_get(slab_data->bitmap, &bin_info->bitmap_info, regind)); in arena_slab_reg_dalloc()
273 bitmap_unset(slab_data->bitmap, &bin_info->bitmap_info, regind); in arena_slab_reg_dalloc()
1093 extent_hooks_t **r_extent_hooks, const bin_info_t *bin_info, in arena_slab_alloc_hard() argument
1104 bin_info->slab_size, 0, PAGE, true, szind, &zero, &commit); in arena_slab_alloc_hard()
1108 bin_info->slab_size); in arena_slab_alloc_hard()
1116 const bin_info_t *bin_info) { in arena_slab_alloc() argument
1121 szind_t szind = sz_size2index(bin_info->reg_size); in arena_slab_alloc()
1125 &arena->extents_dirty, NULL, bin_info->slab_size, 0, PAGE, true, in arena_slab_alloc()
1129 &arena->extents_muzzy, NULL, bin_info->slab_size, 0, PAGE, in arena_slab_alloc()
1134 bin_info, szind); in arena_slab_alloc()
1143 extent_nfree_set(slab, bin_info->nregs); in arena_slab_alloc()
1144 bitmap_init(slab_data->bitmap, &bin_info->bitmap_info, false); in arena_slab_alloc()
1155 const bin_info_t *bin_info; in arena_bin_nonfull_slab_get() local
1164 bin_info = &bin_infos[binind]; in arena_bin_nonfull_slab_get()
1169 slab = arena_slab_alloc(tsdn, arena, binind, bin_info); in arena_bin_nonfull_slab_get()
1197 const bin_info_t *bin_info; in arena_bin_malloc_hard() local
1200 bin_info = &bin_infos[binind]; in arena_bin_malloc_hard()
1213 bin_info); in arena_bin_malloc_hard()
1224 if (extent_nfree_get(slab) == bin_info->nregs) { in arena_bin_malloc_hard()
1246 return arena_slab_reg_alloc(slab, bin_info); in arena_bin_malloc_hard()
1307 arena_alloc_junk_small(void *ptr, const bin_info_t *bin_info, bool zero) { in arena_alloc_junk_small() argument
1309 memset(ptr, JEMALLOC_ALLOC_JUNK, bin_info->reg_size); in arena_alloc_junk_small()
1314 arena_dalloc_junk_small_impl(void *ptr, const bin_info_t *bin_info) { in arena_dalloc_junk_small_impl() argument
1315 memset(ptr, JEMALLOC_FREE_JUNK, bin_info->reg_size); in arena_dalloc_junk_small_impl()
1475 const bin_info_t *bin_info = &bin_infos[binind]; in arena_dissociate_bin_slab() local
1482 if (bin_info->nregs == 1) { in arena_dissociate_bin_slab()
1538 const bin_info_t *bin_info = &bin_infos[binind]; in arena_dalloc_bin_locked_impl() local
1541 arena_dalloc_junk_small(ptr, bin_info); in arena_dalloc_bin_locked_impl()
1546 if (nfree == bin_info->nregs) { in arena_dalloc_bin_locked_impl()