Home
last modified time | relevance | path

Searched refs:bin_info (Results 1 – 5 of 5) 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.c280 arena_run_reg_alloc(arena_run_t *run, arena_bin_info_t *bin_info) in arena_run_reg_alloc() argument
288 assert(!bitmap_full(run->bitmap, &bin_info->bitmap_info)); in arena_run_reg_alloc()
290 regind = (unsigned)bitmap_sfu(run->bitmap, &bin_info->bitmap_info); in arena_run_reg_alloc()
293 ret = (void *)((uintptr_t)rpages + (uintptr_t)bin_info->reg0_offset + in arena_run_reg_alloc()
294 (uintptr_t)(bin_info->reg_interval * regind)); in arena_run_reg_alloc()
306 arena_bin_info_t *bin_info = &arena_bin_info[binind]; in arena_run_reg_dalloc() local
307 size_t regind = arena_run_regind(run, bin_info, ptr); in arena_run_reg_dalloc()
309 assert(run->nfree < bin_info->nregs); in arena_run_reg_dalloc()
313 (uintptr_t)bin_info->reg0_offset)) % in arena_run_reg_dalloc()
314 (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.h563 void arena_alloc_junk_small(void *ptr, arena_bin_info_t *bin_info,
572 void arena_dalloc_junk_small(void *ptr, arena_bin_info_t *bin_info);
691 size_t arena_run_regind(arena_run_t *run, arena_bin_info_t *bin_info,
1115 arena_bin_info_t *bin_info; in arena_ptr_small_binind_get() local
1136 bin_info = &arena_bin_info[actual_binind]; in arena_ptr_small_binind_get()
1139 (uintptr_t)bin_info->reg0_offset)) % bin_info->reg_interval in arena_ptr_small_binind_get()
1157 arena_run_regind(arena_run_t *run, arena_bin_info_t *bin_info, const void *ptr) in arena_run_regind() argument
1168 (uintptr_t)bin_info->reg0_offset); in arena_run_regind()
1175 bin_info->reg0_offset); in arena_run_regind()
1178 interval = bin_info->reg_interval; in arena_run_regind()
[all …]
/external/webp/src/enc/
Dhistogram_enc.c540 } bin_info[BIN_SIZE]; in HistogramCombineEntropyBin() local
544 bin_info[idx].first = -1; in HistogramCombineEntropyBin()
545 bin_info[idx].num_combine_failures = 0; in HistogramCombineEntropyBin()
550 const int first = bin_info[bin_id].first; in HistogramCombineEntropyBin()
555 bin_info[bin_id].first = size++; in HistogramCombineEntropyBin()
577 bin_info[bin_id].num_combine_failures >= max_combine_failures) { in HistogramCombineEntropyBin()
582 ++bin_info[bin_id].num_combine_failures; in HistogramCombineEntropyBin()