Lines Matching refs:pages_count

819 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count, size_t size ZEND_FILE_LI…  argument
821 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_FILE_LINE_DC ZEND_FI…
829 if (UNEXPECTED(chunk->free_pages < pages_count)) {
833 if (UNEXPECTED(ZEND_MM_PAGES - chunk->free_tail < pages_count)) {
863 if (len >= pages_count) {
872 if (len >= pages_count) {
911 if (len >= pages_count && len < best_len) {
912 chunk->free_tail = page_num + pages_count;
929 if (len >= pages_count) {
930 if (len == pages_count) {
958 … %zu bytes exhausted (tried to allocate %zu bytes)", heap->limit, ZEND_MM_PAGE_SIZE * pages_count);
976 … (allocated %zu) (tried to allocate %zu bytes)", heap->real_size, ZEND_MM_PAGE_SIZE * pages_count);
1008 if (steps > 2 && pages_count < 8) {
1018 chunk->free_pages -= pages_count;
1019 zend_mm_bitset_set_range(chunk->free_map, page_num, pages_count);
1020 chunk->map[page_num] = ZEND_MM_LRUN(pages_count);
1022 chunk->free_tail = page_num + pages_count;
1029 int pages_count = (int)ZEND_MM_SIZE_TO_NUM(size, ZEND_MM_PAGE_SIZE); local
1031 …void *ptr = zend_mm_alloc_pages(heap, pages_count, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORI…
1033 …void *ptr = zend_mm_alloc_pages(heap, pages_count ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELA…
1037 size_t size = heap->size + pages_count * ZEND_MM_PAGE_SIZE;
1093 …(zend_mm_heap *heap, zend_mm_chunk *chunk, uint32_t page_num, uint32_t pages_count, int free_chunk) argument
1095 chunk->free_pages += pages_count;
1096 zend_mm_bitset_reset_range(chunk->free_map, page_num, pages_count);
1098 if (chunk->free_tail == page_num + pages_count) {
1107 …ne void zend_mm_free_pages(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1109 zend_mm_free_pages_ex(heap, chunk, page_num, pages_count, 1);
1112 …ne void zend_mm_free_large(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1115 heap->size -= pages_count * ZEND_MM_PAGE_SIZE;
1117 zend_mm_free_pages(heap, chunk, page_num, pages_count);
1303 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1305 …return (zend_mm_debug_info*)((char*)ptr + ZEND_MM_PAGE_SIZE * pages_count - ZEND_MM_ALIGNED_SIZE(s…
1372 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1375 zend_mm_free_large(heap, chunk, page_num, pages_count);
1979 int pages_count = bin_pages[bin_num]; local
1983 zend_mm_free_pages_ex(heap, chunk, i, pages_count, 0);
1984 collected += pages_count;
2054 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2055 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2060 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2061 i += pages_count;
2167 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2168 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2180 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2182 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2187 i += pages_count;
2516 uint32_t pages_count = ZEND_MM_ALIGNED_SIZE_EX(size, ZEND_MM_PAGE_SIZE) / ZEND_MM_PAGE_SIZE; local
2520 ZEND_ASSERT(ZEND_MM_LRUN_PAGES(chunk->map[page_num]) == pages_count);
2521 zend_mm_free_large(AG(mm_heap), chunk, page_num, pages_count);