Lines Matching refs:requested_size

52 static void *find_prefered_mmap_base(size_t requested_size)  in find_prefered_mmap_base()  argument
75 if (last_free_addr + requested_size >= start_base) { in find_prefered_mmap_base()
84 if (last_free_addr + requested_size <= start) { in find_prefered_mmap_base()
85 last_candidate = ZEND_MM_ALIGNED_SIZE_EX(start - requested_size, huge_page_size); in find_prefered_mmap_base()
86 if (last_candidate + requested_size > start) { in find_prefered_mmap_base()
103 if (last_free_addr + requested_size - text_start > UINT32_MAX) { in find_prefered_mmap_base()
107 if (last_free_addr + requested_size <= start) { in find_prefered_mmap_base()
138 if (last_free_addr + requested_size <= e_start) { in find_prefered_mmap_base()
139 last_candidate = ZEND_MM_ALIGNED_SIZE_EX(e_start - requested_size, huge_page_size); in find_prefered_mmap_base()
140 if (last_candidate + requested_size > e_start) { in find_prefered_mmap_base()
157 if (last_free_addr + requested_size - text_start > UINT32_MAX) { in find_prefered_mmap_base()
161 if (last_free_addr + requested_size <= e_start) { in find_prefered_mmap_base()
179 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *sh… in create_segments() argument
198 hint = find_prefered_mmap_base(requested_size); in create_segments()
208 if (requested_size >= huge_page_size && requested_size % huge_page_size == 0) { in create_segments()
209 p = mmap(hint, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_HUGETLB|MAP_FIXED, -1, 0); in create_segments()
215 p = mmap(hint, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_FIXED, -1, 0); in create_segments()
234 if (requested_size >= huge_page_size && requested_size % huge_page_size == 0) { in create_segments()
239 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments()
241 munmap(p, requested_size); in create_segments()
243 …p = mmap(p, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT|MAP_HUGETLB|MAP_FIXED, -1, 0… in create_segments()
247 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments()
254 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_HUGETLB, fd, 0); in create_segments()
260 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, fd, 0); in create_segments()
266 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS, fd, 0); in create_segments()
276 munmap(p, requested_size); in create_segments()
285 shared_segment->size = requested_size; in create_segments()