Home
last modified time | relevance | path

Searched refs:bin_info (Results 1 – 3 of 3) sorted by relevance

/external/jemalloc/src/
Darena.c264 arena_run_reg_alloc(arena_run_t *run, arena_bin_info_t *bin_info) in arena_run_reg_alloc() argument
272 assert(!bitmap_full(run->bitmap, &bin_info->bitmap_info)); in arena_run_reg_alloc()
274 regind = bitmap_sfu(run->bitmap, &bin_info->bitmap_info); in arena_run_reg_alloc()
277 ret = (void *)((uintptr_t)rpages + (uintptr_t)bin_info->reg0_offset + in arena_run_reg_alloc()
278 (uintptr_t)(bin_info->reg_interval * regind)); in arena_run_reg_alloc()
290 arena_bin_info_t *bin_info = &arena_bin_info[binind]; in arena_run_reg_dalloc() local
291 unsigned regind = arena_run_regind(run, bin_info, ptr); in arena_run_reg_dalloc()
293 assert(run->nfree < bin_info->nregs); in arena_run_reg_dalloc()
297 (uintptr_t)bin_info->reg0_offset)) % in arena_run_reg_dalloc()
298 (uintptr_t)bin_info->reg_interval == 0); in arena_run_reg_dalloc()
[all …]
/external/jemalloc/test/unit/
Djunk.c26 arena_dalloc_junk_small_intercept(void *ptr, arena_bin_info_t *bin_info) in arena_dalloc_junk_small_intercept() argument
30 arena_dalloc_junk_small_orig(ptr, bin_info); in arena_dalloc_junk_small_intercept()
31 for (i = 0; i < bin_info->reg_size; i++) { in arena_dalloc_junk_small_intercept()
34 i, bin_info->reg_size); in arena_dalloc_junk_small_intercept()
/external/jemalloc/include/jemalloc/internal/
Darena.h446 void arena_alloc_junk_small(void *ptr, arena_bin_info_t *bin_info,
455 void arena_dalloc_junk_small(void *ptr, arena_bin_info_t *bin_info);
546 unsigned arena_run_regind(arena_run_t *run, arena_bin_info_t *bin_info,
897 arena_bin_info_t *bin_info; in arena_ptr_small_binind_get() local
918 bin_info = &arena_bin_info[actual_binind]; in arena_ptr_small_binind_get()
921 (uintptr_t)bin_info->reg0_offset)) % bin_info->reg_interval in arena_ptr_small_binind_get()
939 arena_run_regind(arena_run_t *run, arena_bin_info_t *bin_info, const void *ptr) in arena_run_regind() argument
951 (uintptr_t)bin_info->reg0_offset); in arena_run_regind()
958 bin_info->reg0_offset); in arena_run_regind()
961 interval = bin_info->reg_interval; in arena_run_regind()
[all …]