Home
last modified time | relevance | path

Searched refs:shared_segment (Results 1 – 5 of 5) sorted by relevance

/PHP-8.4/ext/opcache/
H A Dshared_alloc_posix.c41 zend_shared_segment_posix *shared_segment; in create_segments() local
78 (*shared_segments_p)[0] = shared_segment; in create_segments()
84 if (shared_segment->shm_fd != -1) { in create_segments()
91 if (shared_segment->shm_fd == -1) { in create_segments()
99 if (ftruncate(shared_segment->shm_fd, requested_size) != 0) { in create_segments()
105shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segm… in create_segments()
106 if (shared_segment->common.p == MAP_FAILED) { in create_segments()
113 shared_segment->common.pos = 0; in create_segments()
114 shared_segment->common.size = requested_size; in create_segments()
121 munmap(shared_segment->common.p, shared_segment->common.size); in detach_segment()
[all …]
H A Dshared_alloc_mmap.c184 zend_shared_segment *shared_segment; in create_segments() local
289 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *)); in create_segments()
290 (*shared_segments_p)[0] = shared_segment; in create_segments()
292 shared_segment->p = p; in create_segments()
293 shared_segment->pos = 0; in create_segments()
294 shared_segment->size = requested_size; in create_segments()
299 static int detach_segment(zend_shared_segment *shared_segment) in detach_segment() argument
301 munmap(shared_segment->p, shared_segment->size); in detach_segment()
H A Dshared_alloc_win32.c203 zend_shared_segment *shared_segment; in create_segments() local
266 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *)); in create_segments()
267 (*shared_segments_p)[0] = shared_segment; in create_segments()
299shared_segment->p = mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS|FILE_MAP_EXECUTE, … in create_segments()
325 shared_segment->pos = ACCEL_BASE_POINTER_SIZE; in create_segments()
326 shared_segment->size = requested_size - ACCEL_BASE_POINTER_SIZE; in create_segments()
333 static int detach_segment(zend_shared_segment *shared_segment) in detach_segment() argument
H A Dshared_alloc_shm.c127 static int detach_segment(zend_shared_segment_shm *shared_segment) in detach_segment() argument
129 shmdt(shared_segment->common.p); in detach_segment()
H A Dzend_shared_alloc.h84 typedef int (*detach_segment_t)(zend_shared_segment *shared_segment);

Completed in 17 milliseconds