Searched refs:shared_segments (Results 1 – 3 of 3) sorted by relevance
/PHP-8.0/ext/opcache/ |
H A D | shared_alloc_shm.c | 61 zend_shared_segment_shm *shared_segments; in create_segments() local 96 (*shared_segments_p)[i] = shared_segments + i; in create_segments() 103 shared_segments[i].shm_id = shmget(IPC_PRIVATE, allocate_size, shmget_flags); in create_segments() 105 shared_segments[i].shm_id = first_segment_id; in create_segments() 108 if (shared_segments[i].shm_id == -1) { in create_segments() 112 shared_segments[i].common.p = shmat(shared_segments[i].shm_id, NULL, 0); in create_segments() 113 if (shared_segments[i].common.p == (void *)-1) { in create_segments() 115 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments() 118 shmctl(shared_segments[i].shm_id, IPC_RMID, &sds); in create_segments() 120 shared_segments[i].common.pos = 0; in create_segments() [all …]
|
H A D | zend_shared_alloc.c | 124 ZSMMG(shared_segments) = NULL; in zend_shared_alloc_try() 224 ZSMMG(shared_segments)[i]->end = ZSMMG(shared_segments)[i]->size; in zend_shared_alloc_startup() local 250 free(ZSMMG(shared_segments)); in zend_shared_alloc_startup() 261 if (ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos >= reserved_size) { in zend_shared_alloc_startup() local 262 ZSMMG(shared_segments)[i]->end = ZSMMG(shared_segments)[i]->size - reserved_size; in zend_shared_alloc_startup() local 263 ZSMMG(reserved) = (char*)ZSMMG(shared_segments)[i]->p + ZSMMG(shared_segments)[i]->end; in zend_shared_alloc_startup() 299 free(ZSMMG(shared_segments)); in zend_shared_alloc_shutdown() 301 ZSMMG(shared_segments) = NULL; in zend_shared_alloc_shutdown() 318 size_t block_size = ZSMMG(shared_segments)[i]->end - ZSMMG(shared_segments)[i]->pos; in zend_shared_alloc_get_largest_free_block() 616 mprotect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->end, mode); in zend_accel_shared_protect() [all …]
|
H A D | zend_shared_alloc.h | 83 typedef int (*create_segments_t)(size_t requested_size, zend_shared_segment ***shared_segments, int… 104 zend_shared_segment **shared_segments; member
|
Completed in 47 milliseconds