Searched refs:bin_info (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/jemalloc/src/ |
H A D | bin.c | 15 bin_info_t *bin_info = &bin_infos[i]; in bin_infos_init() local 17 bin_info->reg_size = ((size_t)1U << sc->lg_base) in bin_infos_init() 19 bin_info->slab_size = (sc->pgs << LG_PAGE); in bin_infos_init() 20 bin_info->nregs = in bin_infos_init() 21 (uint32_t)(bin_info->slab_size / bin_info->reg_size); in bin_infos_init() 22 bin_info->n_shards = bin_shard_sizes[i]; in bin_infos_init() 24 bin_info->nregs); in bin_infos_init() 25 bin_info->bitmap_info = bitmap_info; in bin_infos_init()
|
H A D | arena.c | 271 arena_slab_reg_alloc(extent_t *slab, const bin_info_t *bin_info) { in arena_slab_reg_alloc() argument 277 assert(!bitmap_full(slab_data->bitmap, &bin_info->bitmap_info)); in arena_slab_reg_alloc() 279 regind = bitmap_sfu(slab_data->bitmap, &bin_info->bitmap_info); in arena_slab_reg_alloc() 281 (uintptr_t)(bin_info->reg_size * regind)); in arena_slab_reg_alloc() 287 arena_slab_reg_alloc_batch(extent_t *slab, const bin_info_t *bin_info, in arena_slab_reg_alloc_batch() argument 292 assert(!bitmap_full(slab_data->bitmap, &bin_info->bitmap_info)); in arena_slab_reg_alloc_batch() 297 &bin_info->bitmap_info); in arena_slab_reg_alloc_batch() 299 (uintptr_t)(bin_info->reg_size * regind)); in arena_slab_reg_alloc_batch() 320 uintptr_t regsize = (uintptr_t)bin_info->reg_size; in arena_slab_reg_alloc_batch() 361 const bin_info_t *bin_info = &bin_infos[binind]; in arena_slab_reg_dalloc() local [all …]
|
H A D | jemalloc.c | 2834 cache_bin_info_t *bin_info = &tcache_bin_info[alloc_ctx.szind]; in free_fastpath() local 2835 if (!cache_bin_dalloc_easy(bin, bin_info, ptr)) { in free_fastpath()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | tcache_inlines.h | 167 cache_bin_info_t *bin_info; in tcache_dalloc_small() local 177 bin_info = &tcache_bin_info[binind]; in tcache_dalloc_small() 178 if (unlikely(!cache_bin_dalloc_easy(bin, bin_info, ptr))) { in tcache_dalloc_small() 180 (bin_info->ncached_max >> 1)); in tcache_dalloc_small() 181 bool ret = cache_bin_dalloc_easy(bin, bin_info, ptr); in tcache_dalloc_small() 192 cache_bin_info_t *bin_info; in tcache_dalloc_large() local 203 bin_info = &tcache_bin_info[binind]; in tcache_dalloc_large() 204 if (unlikely(bin->ncached == bin_info->ncached_max)) { in tcache_dalloc_large() 206 (bin_info->ncached_max >> 1), tcache); in tcache_dalloc_large() 208 assert(bin->ncached < bin_info->ncached_max); in tcache_dalloc_large()
|
H A D | cache_bin.h | 120 cache_bin_dalloc_easy(cache_bin_t *bin, cache_bin_info_t *bin_info, void *ptr) { in cache_bin_dalloc_easy() argument 121 if (unlikely(bin->ncached == bin_info->ncached_max)) { in cache_bin_dalloc_easy() 124 assert(bin->ncached < bin_info->ncached_max); in cache_bin_dalloc_easy()
|
H A D | arena_externs.h | 53 void arena_alloc_junk_small(void *ptr, const bin_info_t *bin_info,
|