Lines Matching refs:pages_count
912 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count, size_t size ZEND_FILE_LI… argument
914 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_FILE_LINE_DC ZEND_FI…
922 if (UNEXPECTED(chunk->free_pages < pages_count)) {
926 if (UNEXPECTED(ZEND_MM_PAGES - chunk->free_tail < pages_count)) {
956 if (len >= pages_count) {
965 if (len >= pages_count) {
1004 if (len >= pages_count && len < best_len) {
1005 chunk->free_tail = page_num + pages_count;
1022 if (len >= pages_count) {
1023 if (len == pages_count) {
1051 … %zu bytes exhausted (tried to allocate %zu bytes)", heap->limit, ZEND_MM_PAGE_SIZE * pages_count);
1069 …cated %zu bytes) (tried to allocate %zu bytes)", heap->real_size, ZEND_MM_PAGE_SIZE * pages_count);
1101 if (steps > 2 && pages_count < 8) {
1114 chunk->free_pages -= pages_count;
1115 zend_mm_bitset_set_range(chunk->free_map, page_num, pages_count);
1116 chunk->map[page_num] = ZEND_MM_LRUN(pages_count);
1118 chunk->free_tail = page_num + pages_count;
1125 int pages_count = (int)ZEND_MM_SIZE_TO_NUM(size, ZEND_MM_PAGE_SIZE); local
1127 …void *ptr = zend_mm_alloc_pages(heap, pages_count, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORI…
1129 …void *ptr = zend_mm_alloc_pages(heap, pages_count ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELA…
1133 size_t size = heap->size + pages_count * ZEND_MM_PAGE_SIZE;
1185 …(zend_mm_heap *heap, zend_mm_chunk *chunk, uint32_t page_num, uint32_t pages_count, int free_chunk) argument
1187 chunk->free_pages += pages_count;
1188 zend_mm_bitset_reset_range(chunk->free_map, page_num, pages_count);
1190 if (chunk->free_tail == page_num + pages_count) {
1199 …ne void zend_mm_free_pages(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1201 zend_mm_free_pages_ex(heap, chunk, page_num, pages_count, 1);
1204 …ne void zend_mm_free_large(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1207 heap->size -= pages_count * ZEND_MM_PAGE_SIZE;
1209 zend_mm_free_pages(heap, chunk, page_num, pages_count);
1460 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1462 …return (zend_mm_debug_info*)((char*)ptr + ZEND_MM_PAGE_SIZE * pages_count - ZEND_MM_ALIGNED_SIZE(s…
1534 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1537 zend_mm_free_large(heap, chunk, page_num, pages_count);
2167 int pages_count = bin_pages[bin_num]; local
2171 zend_mm_free_pages_ex(heap, chunk, i, pages_count, 0);
2172 collected += pages_count;
2242 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2243 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2248 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2249 i += pages_count;
2355 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2356 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2368 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2370 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2375 i += pages_count;
2716 uint32_t pages_count = ZEND_MM_ALIGNED_SIZE_EX(size, ZEND_MM_PAGE_SIZE) / ZEND_MM_PAGE_SIZE; local
2720 ZEND_ASSERT(ZEND_MM_LRUN_PAGES(chunk->map[page_num]) == pages_count);
2721 zend_mm_free_large(AG(mm_heap), chunk, page_num, pages_count);