Searched refs:shared_segments_p (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
41 *shared_segments_p = (zend_shared_segment **) calloc(1, sizeof(zend_shared_segment) + sizeof(void *));
42 if (!*shared_segments_p) {
46 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *));
47 (*shared_segments_p)[0] = shared_segment;
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
45 *shared_segments_p = (zend_shared_segment_posix **) calloc(1, sizeof(zend_shared_segment_posix) + sizeof(void *));
46 if (!*shared_segments_p) {
50 shared_segment = (zend_shared_segment_posix *)((char *)(*shared_segments_p) + sizeof(void *));
51 (*shared_segments_p)[0] = shared_segment;
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
90 *shared_segments_p = (zend_shared_segment_shm **) calloc(1, (*shared_segments_count) * sizeof(zend_shared_segment_shm) + sizeof(void *) * (*shared_segments_count));
91 if (!*shared_segments_p) {
95 shared_segments = (zend_shared_segment_shm *)((char *)(*shared_segments_p) + sizeof(void *) * (*shared_segments_count));
97 (*shared_segments_p)[i] = shared_segments + i;
H A Dshared_alloc_win32.c174 static int create_segments(size_t requested_size, zend_shared_segment ***shared_segments_p, int *shared_segments_count, char **error_in) argument
226 *shared_segments_p = (zend_shared_segment **) calloc(1, sizeof(zend_shared_segment)+sizeof(void *));
227 if (!*shared_segments_p) {
233 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *));
234 (*shared_segments_p)[0] = shared_segment;
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);
136 if (*shared_segments_p) {
140 if ((*shared_segments_p)[i]->p && (*shared_segments_p)[i]->p != (void *)-1) {
141 S_H(detach_segment)((*shared_segments_p)[i]);
144 free(*shared_segments_p);
145 *shared_segments_p = NULL;

Completed in 6 milliseconds