Home
last modified time | relevance | path

Searched refs:requested_size (Results 1 – 6 of 6) sorted by relevance

/PHP-8.2/ext/opcache/
H A Dshared_alloc_mmap.c75 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()
86 if (last_candidate + requested_size > start) { 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()
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()
234 if (requested_size >= huge_page_size && requested_size % huge_page_size == 0) { in create_segments()
241 munmap(p, requested_size); in create_segments()
276 munmap(p, requested_size); in create_segments()
[all …]
H A Dshared_alloc_shm.c53 static int create_segments(size_t requested_size, zend_shared_segment_shm ***shared_segments_p, int… in create_segments() argument
56 size_t allocate_size = 0, remaining_bytes = requested_size, seg_allocate_size; in create_segments()
67 while (requested_size * 2 <= seg_allocate_size && seg_allocate_size > SEG_ALLOC_SIZE_MIN) { in create_segments()
75 allocate_size = MIN(requested_size, seg_allocate_size); in create_segments()
88 *shared_segments_count = ((requested_size - 1) / seg_allocate_size) + 1; in create_segments()
99 remaining_bytes = requested_size; in create_segments()
H A Dshared_alloc_posix.c39 static int create_segments(size_t requested_size, zend_shared_segment_posix ***shared_segments_p, i… in create_segments() argument
60 if (ftruncate(shared_segment->shm_fd, requested_size) != 0) { in create_segments()
66 …shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segm… in create_segments()
75 shared_segment->common.size = requested_size; in create_segments()
H A Dshared_alloc_win32.c115 static int zend_shared_alloc_reattach(size_t requested_size, char **error_in) in zend_shared_alloc_reattach() argument
140 info.RegionSize < requested_size) { in zend_shared_alloc_reattach()
190 if (!VirtualProtect(mapping_base, requested_size, PAGE_READWRITE, &old)) { in zend_shared_alloc_reattach()
202 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *sh… in create_segments() argument
215 DWORD size_high = (requested_size >> 32), size_low = (requested_size & 0xffffffff); in create_segments()
218 DWORD size_high = 0, size_low = requested_size; in create_segments()
233 ret = zend_shared_alloc_reattach(requested_size, error_in); in create_segments()
317 if (!VirtualProtect(mapping_base, requested_size, PAGE_READWRITE, &old)) { in create_segments()
328 shared_segment->size = requested_size - ACCEL_BASE_POINTER_SIZE; in create_segments()
H A Dzend_shared_alloc.c120 static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, size_t requested_size,… in zend_shared_alloc_try() argument
128 res = S_H(create_segments)(requested_size, shared_segments_p, shared_segments_count, error_in); in zend_shared_alloc_try()
149 int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size) in zend_shared_alloc_startup() argument
163 ZSMMG(shared_free) = requested_size - reserved_size; /* goes to tmp_shared_globals.shared_free */ in zend_shared_alloc_startup()
180 …res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_co… in zend_shared_alloc_startup()
203 …res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_co… in zend_shared_alloc_startup()
212 no_memory_bailout(requested_size, error_in); in zend_shared_alloc_startup()
H A Dzend_shared_alloc.h83 typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int…
130 int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size);

Completed in 26 milliseconds