Searched defs:requested_size (Results 1 - 5 of 5) sorted by relevance

/PHP_TRUNK/ext/opcache/
H A Dshared_alloc_mmap.c36 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in) argument
49 shared_segment->p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0);
56 shared_segment->size = requested_size;
H A Dshared_alloc_posix.c39 static int create_segments(size_t requested_size, zend_shared_segment_posix ***shared_segments_p, int *shared_segments_count, char **error_in) argument
60 if (ftruncate(shared_segment->shm_fd, requested_size) != 0) {
66 shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segment->shm_fd, 0);
75 shared_segment->common.size = requested_size;
H A Dshared_alloc_shm.c54 static int create_segments(size_t requested_size, zend_shared_segment_shm ***shared_segments_p, int *shared_segments_count, char **error_in) argument
57 size_t allocate_size = 0, remaining_bytes = requested_size, seg_allocate_size;
66 * no more than to include requested_size
68 while (requested_size * 2 <= seg_allocate_size && seg_allocate_size > SEG_ALLOC_SIZE_MIN) {
76 allocate_size = MIN(requested_size, seg_allocate_size);
89 *shared_segments_count = ((requested_size - 1) / seg_allocate_size) + 1;
100 remaining_bytes = requested_size;
H A Dshared_alloc_win32.c126 static int zend_shared_alloc_reattach(size_t requested_size, char **error_in) argument
153 info.RegionSize < requested_size) {
174 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in) argument
204 ret = zend_shared_alloc_reattach(requested_size, error_in);
236 memfile = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, requested_size,
316 shared_segment->size = requested_size;
H A Dzend_shared_alloc.c122 static int zend_shared_alloc_try(const zend_shared_memory_handler_entry *he, size_t requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in) argument
130 res = S_H(create_segments)(requested_size, shared_segments_p, shared_segments_count, error_in);
151 int zend_shared_alloc_startup(size_t requested_size) argument
166 ZSMMG(shared_free) = requested_size; /* goes to tmp_shared_globals.shared_free */
179 res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
196 res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
205 no_memory_bailout(requested_size, error_in);

Completed in 20 milliseconds