Searched refs:shared_segments (Results 1 – 3 of 3) sorted by relevance
/PHP-7.2/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 | 125 ZSMMG(shared_segments) = NULL; in zend_shared_alloc_try() 246 free(ZSMMG(shared_segments)); in zend_shared_alloc_startup() 247 ZSMMG(shared_segments) = tmp_shared_segments; in zend_shared_alloc_startup() 272 ZSMMG(shared_segments) = tmp_shared_segments; in zend_shared_alloc_shutdown() 277 efree(ZSMMG(shared_segments)); in zend_shared_alloc_shutdown() 278 ZSMMG(shared_segments) = NULL; in zend_shared_alloc_shutdown() 291 size_t block_size = ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos; in zend_shared_alloc_get_largest_free_block() 324 …if (ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos >= block_size) { /* found a v… in zend_shared_alloc() local 325 …void *retval = (void *) (((char *) ZSMMG(shared_segments)[i]->p) + ZSMMG(shared_segments)[i]->pos); in zend_shared_alloc() 516 mprotect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->size, mode); in zend_accel_shared_protect() [all …]
|
H A D | zend_shared_alloc.h | 79 typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int… 100 zend_shared_segment **shared_segments; member
|
Completed in 13 milliseconds