Lines Matching refs:pages_count

876 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count, size_t size ZEND_FILE_LI…  argument
878 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_FILE_LINE_DC ZEND_FI…
886 if (UNEXPECTED(chunk->free_pages < pages_count)) {
890 if (UNEXPECTED(ZEND_MM_PAGES - chunk->free_tail < pages_count)) {
920 if (len >= pages_count) {
929 if (len >= pages_count) {
968 if (len >= pages_count && len < best_len) {
969 chunk->free_tail = page_num + pages_count;
986 if (len >= pages_count) {
987 if (len == pages_count) {
1015 … %zu bytes exhausted (tried to allocate %zu bytes)", heap->limit, ZEND_MM_PAGE_SIZE * pages_count);
1033 …cated %zu bytes) (tried to allocate %zu bytes)", heap->real_size, ZEND_MM_PAGE_SIZE * pages_count);
1065 if (steps > 2 && pages_count < 8) {
1075 chunk->free_pages -= pages_count;
1076 zend_mm_bitset_set_range(chunk->free_map, page_num, pages_count);
1077 chunk->map[page_num] = ZEND_MM_LRUN(pages_count);
1079 chunk->free_tail = page_num + pages_count;
1086 int pages_count = (int)ZEND_MM_SIZE_TO_NUM(size, ZEND_MM_PAGE_SIZE); local
1088 …void *ptr = zend_mm_alloc_pages(heap, pages_count, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORI…
1090 …void *ptr = zend_mm_alloc_pages(heap, pages_count ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELA…
1094 size_t size = heap->size + pages_count * ZEND_MM_PAGE_SIZE;
1150 …(zend_mm_heap *heap, zend_mm_chunk *chunk, uint32_t page_num, uint32_t pages_count, int free_chunk) argument
1152 chunk->free_pages += pages_count;
1153 zend_mm_bitset_reset_range(chunk->free_map, page_num, pages_count);
1155 if (chunk->free_tail == page_num + pages_count) {
1164 …ne void zend_mm_free_pages(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1166 zend_mm_free_pages_ex(heap, chunk, page_num, pages_count, 1);
1169 …ne void zend_mm_free_large(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1172 heap->size -= pages_count * ZEND_MM_PAGE_SIZE;
1174 zend_mm_free_pages(heap, chunk, page_num, pages_count);
1360 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1362 …return (zend_mm_debug_info*)((char*)ptr + ZEND_MM_PAGE_SIZE * pages_count - ZEND_MM_ALIGNED_SIZE(s…
1429 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1432 zend_mm_free_large(heap, chunk, page_num, pages_count);
2032 int pages_count = bin_pages[bin_num]; local
2036 zend_mm_free_pages_ex(heap, chunk, i, pages_count, 0);
2037 collected += pages_count;
2107 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2108 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2113 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2114 i += pages_count;
2220 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2221 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2233 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2235 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2240 i += pages_count;
2589 uint32_t pages_count = ZEND_MM_ALIGNED_SIZE_EX(size, ZEND_MM_PAGE_SIZE) / ZEND_MM_PAGE_SIZE; local
2593 ZEND_ASSERT(ZEND_MM_LRUN_PAGES(chunk->map[page_num]) == pages_count);
2594 zend_mm_free_large(AG(mm_heap), chunk, page_num, pages_count);