Lines Matching defs:need_pages
388 size_t run_ind, total_pages, need_pages, rem_pages, i;
401 need_pages = (size >> LG_PAGE);
402 assert(need_pages > 0);
403 assert(need_pages <= total_pages);
404 rem_pages = total_pages - need_pages;
413 need_pages) << LG_PAGE) - CHUNK_CEILING(arena->nactive <<
418 arena->nactive += need_pages;
423 arena_mapbits_unallocated_set(chunk, run_ind+need_pages,
429 arena_mapbits_unallocated_set(chunk, run_ind+need_pages,
432 run_ind+need_pages));
438 arena_avail_insert(arena, chunk, run_ind+need_pages, rem_pages,
453 for (i = 0; i < need_pages; i++) {
468 arena_run_zero(chunk, run_ind, need_pages);
476 arena_mapbits_large_set(chunk, run_ind+need_pages-1, 0,
495 for (i = 1; i < need_pages - 1; i++) {
503 arena_mapbits_small_set(chunk, run_ind+need_pages-1,
504 need_pages-1, binind, flag_dirty);
506 arena_mapbits_unzeroed_get(chunk, run_ind+need_pages-1) ==
509 run_ind+need_pages-1);
513 LG_PAGE)), (need_pages << LG_PAGE));