Searched refs:shared_segments (Results 1 - 3 of 3) sorted by relevance

/PHP_TRUNK/ext/opcache/
H A Dshared_alloc_shm.c62 zend_shared_segment_shm *shared_segments; local
95 shared_segments = (zend_shared_segment_shm *)((char *)(*shared_segments_p) + sizeof(void *) * (*shared_segments_count));
97 (*shared_segments_p)[i] = shared_segments + i;
104 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags);
106 shared_segments[i].shm_id = first_segment_id;
109 if (shared_segments[i].shm_id == -1) {
113 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0);
114 if (shared_segments[i].common.p == (void *)-1) {
116 shmctl(shared_segments[
[all...]
H A Dzend_shared_alloc.c127 ZSMMG(shared_segments) = NULL;
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);
215 /* move shared_segments and shared_free to shared memory */
229 copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)());
234 free(ZSMMG(shared_segments));
235 ZSMMG(shared_segments) = tmp_shared_segments;
259 copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)());
260 ZSMMG(shared_segments) = tmp_shared_segments;
263 S_H(detach_segment)(ZSMMG(shared_segments)[
[all...]
H A Dzend_shared_alloc.h78 typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int *shared_segment_count, char **error_in);
99 zend_shared_segment **shared_segments; member in struct:_zend_smm_shared_globals

Completed in 4 milliseconds