Searched refs:shared_segments_count (Results 1 - 6 of 6) 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
40 *shared_segments_count = 1;
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
44 *shared_segments_count = 1;
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
89 *shared_segments_count = ((requested_size - 1) / seg_allocate_size) + 1;
90 *shared_segments_p = (zend_shared_segment_shm **) calloc(1, (*shared_segments_count) * sizeof(zend_shared_segment_shm) + sizeof(void *) * (*shared_segments_count));
95 shared_segments = (zend_shared_segment_shm *)((char *)(*shared_segments_p) + sizeof(void *) * (*shared_segments_count));
96 for (i = 0; i < *shared_segments_count; i++) {
101 for (i = 0; i < *shared_segments_count; 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
225 *shared_segments_count = 1;
H A Dzend_shared_alloc.h101 int shared_segments_count; member in struct:_zend_smm_shared_globals
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
128 ZSMMG(shared_segments_count) = 0;
130 res = S_H(create_segments)(requested_size, shared_segments_p, shared_segments_count, error_in);
139 for (i = 0; i < *shared_segments_count; i++) {
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);
213 shared_segments_array_size = ZSMMG(shared_segments_count) * S_H(segment_type_size)();
223 tmp_shared_segments = zend_shared_alloc(shared_segments_array_size + ZSMMG(shared_segments_count) * sizeof(void *));
229 copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)());
237 ZSMMG(shared_memory_state).positions = (int *)zend_shared_alloc(sizeof(int) * ZSMMG(shared_segments_count));
[all...]

Completed in 6 milliseconds