Home
last modified time | relevance | path

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

/external/jemalloc/src/
Dandroid_je_iterate.c131 const arena_bin_info_t *bin_info; in je_iterate_small() local
137 bin_info = &arena_bin_info[binind]; in je_iterate_small()
139 ptr = (uintptr_t)rpages + bin_info->reg0_offset; in je_iterate_small()
141 for (regind = 0; regind < bin_info->nregs; regind++) { in je_iterate_small()
142 if (bitmap_get(run->bitmap, &bin_info->bitmap_info, regind)) { in je_iterate_small()
143 callback(ptr, bin_info->reg_size, arg); in je_iterate_small()
145 ptr += bin_info->reg_interval; in je_iterate_small()
Darena.c301 arena_run_reg_alloc(arena_run_t *run, arena_bin_info_t *bin_info) in arena_run_reg_alloc() argument
309 assert(!bitmap_full(run->bitmap, &bin_info->bitmap_info)); in arena_run_reg_alloc()
311 regind = (unsigned)bitmap_sfu(run->bitmap, &bin_info->bitmap_info); in arena_run_reg_alloc()
314 ret = (void *)((uintptr_t)rpages + (uintptr_t)bin_info->reg0_offset + in arena_run_reg_alloc()
315 (uintptr_t)(bin_info->reg_interval * regind)); in arena_run_reg_alloc()
327 arena_bin_info_t *bin_info = &arena_bin_info[binind]; in arena_run_reg_dalloc() local
328 size_t regind = arena_run_regind(run, bin_info, ptr); in arena_run_reg_dalloc()
330 assert(run->nfree < bin_info->nregs); in arena_run_reg_dalloc()
334 (uintptr_t)bin_info->reg0_offset)) % in arena_run_reg_dalloc()
335 (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.h532 void arena_alloc_junk_small(void *ptr, arena_bin_info_t *bin_info,
541 void arena_dalloc_junk_small(void *ptr, arena_bin_info_t *bin_info);
645 size_t arena_run_regind(arena_run_t *run, arena_bin_info_t *bin_info,
1046 arena_bin_info_t *bin_info; in arena_ptr_small_binind_get() local
1067 bin_info = &arena_bin_info[actual_binind]; in arena_ptr_small_binind_get()
1070 (uintptr_t)bin_info->reg0_offset)) % bin_info->reg_interval in arena_ptr_small_binind_get()
1088 arena_run_regind(arena_run_t *run, arena_bin_info_t *bin_info, const void *ptr) in arena_run_regind() argument
1099 (uintptr_t)bin_info->reg0_offset); in arena_run_regind()
1106 bin_info->reg0_offset); in arena_run_regind()
1109 interval = bin_info->reg_interval; in arena_run_regind()
[all …]