Searched refs:shared_segments (Results 1 – 3 of 3) sorted by relevance
/PHP-5.6/ext/opcache/ |
H A D | shared_alloc_shm.c | 62 zend_shared_segment_shm *shared_segments; in create_segments() local 97 (*shared_segments_p)[i] = shared_segments + i; in create_segments() 104 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags); in create_segments() 106 shared_segments[i].shm_id = first_segment_id; in create_segments() 109 if (shared_segments[i].shm_id == -1) { in create_segments() 113 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0); in create_segments() 114 if (shared_segments[i].common.p == (void *)-1) { in create_segments() 116 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments() 119 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments() 121 shared_segments[i].common.pos = 0; in create_segments() [all …]
|
H A D | zend_shared_alloc.c | 127 ZSMMG(shared_segments) = NULL; in zend_shared_alloc_try() 234 free(ZSMMG(shared_segments)); in zend_shared_alloc_startup() 235 ZSMMG(shared_segments) = tmp_shared_segments; in zend_shared_alloc_startup() 260 ZSMMG(shared_segments) = tmp_shared_segments; in zend_shared_alloc_shutdown() 265 efree(ZSMMG(shared_segments)); in zend_shared_alloc_shutdown() 266 ZSMMG(shared_segments) = NULL; in zend_shared_alloc_shutdown() 279 size_t block_size = ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos; in zend_shared_alloc_get_largest_free_block() 313 …if (ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos >= block_size) { /* found a v… in zend_shared_alloc() local 314 …void *retval = (void *) (((char *) ZSMMG(shared_segments)[i]->p) + ZSMMG(shared_segments)[i]->pos); in zend_shared_alloc() 316 ZSMMG(shared_segments)[i]->pos += block_size; in zend_shared_alloc() local [all …]
|
H A D | zend_shared_alloc.h | 78 typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int… 99 zend_shared_segment **shared_segments; member
|
Completed in 11 milliseconds