Searched refs:requested_size (Results 1 – 6 of 6) sorted by relevance
/PHP-8.0/ext/opcache/ |
H A D | shared_alloc_mmap.c | 39 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *sh… in create_segments() argument 63 if (requested_size >= huge_page_size && requested_size % huge_page_size == 0) { in create_segments() 68 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, -1, 0); in create_segments() 70 munmap(p, requested_size); in create_segments() 72 …p = mmap(p, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT|MAP_HUGETLB|MAP_FIXED, -1, 0… in create_segments() 76 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, -1, 0); in create_segments() 83 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_HUGETLB, -1, 0); in create_segments() 89 p = mmap(NULL, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS|MAP_32BIT, -1, 0); in create_segments() 95 p = mmap(0, requested_size, flags, MAP_SHARED|MAP_ANONYMOUS, -1, 0); in create_segments() 105 munmap(p, requested_size); in create_segments() [all …]
|
H A D | shared_alloc_shm.c | 53 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 D | shared_alloc_posix.c | 39 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 D | shared_alloc_win32.c | 115 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 D | zend_shared_alloc.h | 83 typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int… 128 int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size); 132 void *zend_shared_alloc_pages(size_t requested_size);
|
H A D | zend_shared_alloc.c | 119 static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, size_t requested_size,… in zend_shared_alloc_try() argument 127 res = S_H(create_segments)(requested_size, shared_segments_p, shared_segments_count, error_in); in zend_shared_alloc_try() 148 int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size) in zend_shared_alloc_startup() argument 162 ZSMMG(shared_free) = requested_size - reserved_size; /* goes to tmp_shared_globals.shared_free */ in zend_shared_alloc_startup() 179 …res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_co… in zend_shared_alloc_startup() 201 …res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_co… in zend_shared_alloc_startup() 210 no_memory_bailout(requested_size, error_in); in zend_shared_alloc_startup()
|
Completed in 12 milliseconds