Lines Matching refs:pages_count

849 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count, size_t size ZEND_FILE_LI…  argument
851 static void *zend_mm_alloc_pages(zend_mm_heap *heap, uint32_t pages_count ZEND_FILE_LINE_DC ZEND_FI…
859 if (UNEXPECTED(chunk->free_pages < pages_count)) {
863 if (UNEXPECTED(ZEND_MM_PAGES - chunk->free_tail < pages_count)) {
893 if (len >= pages_count) {
902 if (len >= pages_count) {
941 if (len >= pages_count && len < best_len) {
942 chunk->free_tail = page_num + pages_count;
959 if (len >= pages_count) {
960 if (len == pages_count) {
988 … %zu bytes exhausted (tried to allocate %zu bytes)", heap->limit, ZEND_MM_PAGE_SIZE * pages_count);
1006 … (allocated %zu) (tried to allocate %zu bytes)", heap->real_size, ZEND_MM_PAGE_SIZE * pages_count);
1038 if (steps > 2 && pages_count < 8) {
1048 chunk->free_pages -= pages_count;
1049 zend_mm_bitset_set_range(chunk->free_map, page_num, pages_count);
1050 chunk->map[page_num] = ZEND_MM_LRUN(pages_count);
1052 chunk->free_tail = page_num + pages_count;
1059 int pages_count = (int)ZEND_MM_SIZE_TO_NUM(size, ZEND_MM_PAGE_SIZE); local
1061 …void *ptr = zend_mm_alloc_pages(heap, pages_count, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORI…
1063 …void *ptr = zend_mm_alloc_pages(heap, pages_count ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELA…
1067 size_t size = heap->size + pages_count * ZEND_MM_PAGE_SIZE;
1111 …(zend_mm_heap *heap, zend_mm_chunk *chunk, uint32_t page_num, uint32_t pages_count, int free_chunk) argument
1113 chunk->free_pages += pages_count;
1114 zend_mm_bitset_reset_range(chunk->free_map, page_num, pages_count);
1116 if (chunk->free_tail == page_num + pages_count) {
1125 …ic void zend_mm_free_pages(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1127 zend_mm_free_pages_ex(heap, chunk, page_num, pages_count, 1);
1130 …ne void zend_mm_free_large(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1133 heap->size -= pages_count * ZEND_MM_PAGE_SIZE;
1135 zend_mm_free_pages(heap, chunk, page_num, pages_count);
1321 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1323 …return (zend_mm_debug_info*)((char*)ptr + ZEND_MM_PAGE_SIZE * pages_count - ZEND_MM_ALIGNED_SIZE(s…
1390 int pages_count = ZEND_MM_LRUN_PAGES(info); local
1393 zend_mm_free_large(heap, chunk, page_num, pages_count);
1941 int pages_count = bin_pages[bin_num]; local
1945 zend_mm_free_pages_ex(heap, chunk, i, pages_count, 0);
1946 collected += pages_count;
2016 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2017 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2022 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2023 i += pages_count;
2128 int pages_count = ZEND_MM_LRUN_PAGES(p->map[i]); local
2129 …_info *dbg = (zend_mm_debug_info*)((char*)p + ZEND_MM_PAGE_SIZE * (i + pages_count) - ZEND_MM_ALIG…
2141 zend_mm_bitset_reset_range(p->free_map, i, pages_count);
2143 repeated = zend_mm_find_leaks(heap, p, i + pages_count, &leak);
2148 i += pages_count;
2404 uint32_t pages_count = ZEND_MM_ALIGNED_SIZE_EX(size, ZEND_MM_PAGE_SIZE) / ZEND_MM_PAGE_SIZE; local
2408 ZEND_ASSERT(ZEND_MM_LRUN_PAGES(chunk->map[page_num]) == pages_count);
2409 zend_mm_free_large(AG(mm_heap), chunk, page_num, pages_count);