Lines Matching refs:shared_segments
124 ZSMMG(shared_segments) = NULL; in zend_shared_alloc_try()
179 …res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_co… in zend_shared_alloc_startup()
201 …res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_co… in zend_shared_alloc_startup()
224 ZSMMG(shared_segments)[i]->end = ZSMMG(shared_segments)[i]->size; in zend_shared_alloc_startup() local
245 …copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count),… in zend_shared_alloc_startup()
250 free(ZSMMG(shared_segments)); in zend_shared_alloc_startup()
251 ZSMMG(shared_segments) = tmp_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()
292 …copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count),… in zend_shared_alloc_shutdown()
293 ZSMMG(shared_segments) = tmp_shared_segments; in zend_shared_alloc_shutdown()
296 S_H(detach_segment)(ZSMMG(shared_segments)[i]); in zend_shared_alloc_shutdown()
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()
351 …if (ZSMMG(shared_segments)[i]->end - ZSMMG(shared_segments)[i]->pos >= block_size) { /* found a va… in zend_shared_alloc() local
352 …void *retval = (void *) (((char *) ZSMMG(shared_segments)[i]->p) + ZSMMG(shared_segments)[i]->pos); in zend_shared_alloc()
354 ZSMMG(shared_segments)[i]->pos += block_size; in zend_shared_alloc() local
578 ZSMMG(shared_memory_state).positions[i] = ZSMMG(shared_segments)[i]->pos; in zend_shared_alloc_save_state()
588 ZSMMG(shared_segments)[i]->pos = ZSMMG(shared_memory_state).positions[i]; in zend_shared_alloc_restore_state() local
616 mprotect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->end, mode); in zend_accel_shared_protect()
633 …if (!VirtualProtect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->end, mode, &oldProtec… in zend_accel_shared_protect()
649 if ((char*)ptr >= (char*)ZSMMG(shared_segments)[i]->p && in zend_accel_in_shm()
650 (char*)ptr < (char*)ZSMMG(shared_segments)[i]->p + ZSMMG(shared_segments)[i]->end) { in zend_accel_in_shm()