Searched refs:requested_size (Results 1 – 6 of 6) sorted by relevance
/PHP-5.6/ext/opcache/ |
H A D | shared_alloc_shm.c | 54 static int create_segments(size_t requested_size, zend_shared_segment_shm ***shared_segments_p, int… in create_segments() argument 57 size_t allocate_size = 0, remaining_bytes = requested_size, seg_allocate_size; in create_segments() 68 while (requested_size * 2 <= seg_allocate_size && seg_allocate_size > SEG_ALLOC_SIZE_MIN) { in create_segments() 76 allocate_size = MIN(requested_size, seg_allocate_size); in create_segments() 89 *shared_segments_count = ((requested_size - 1) / seg_allocate_size) + 1; in create_segments() 100 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_mmap.c | 36 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *sh… in create_segments() argument 49 …shared_segment->p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, … in create_segments() 56 shared_segment->size = requested_size; in create_segments()
|
H A D | shared_alloc_win32.c | 168 static int zend_shared_alloc_reattach(size_t requested_size, char **error_in) in zend_shared_alloc_reattach() argument 195 info.RegionSize < requested_size) { in zend_shared_alloc_reattach() 216 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *sh… in create_segments() argument 246 ret = zend_shared_alloc_reattach(requested_size, error_in); in create_segments() 283 memfile = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, requested_size, in create_segments() 363 shared_segment->size = requested_size; in create_segments()
|
H A D | zend_shared_alloc.c | 122 static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, size_t requested_size,… in zend_shared_alloc_try() argument 130 res = S_H(create_segments)(requested_size, shared_segments_p, shared_segments_count, error_in); in zend_shared_alloc_try() 151 int zend_shared_alloc_startup(size_t requested_size) in zend_shared_alloc_startup() argument 166 ZSMMG(shared_free) = requested_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() 196 …res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_co… in zend_shared_alloc_startup() 205 no_memory_bailout(requested_size, error_in); in zend_shared_alloc_startup()
|
H A D | zend_shared_alloc.h | 78 typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int… 120 int zend_shared_alloc_startup(size_t requested_size);
|
Completed in 14 milliseconds