Home
last modified time | relevance | path

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

/PHP-7.1/ext/opcache/
H A Dshared_alloc_mmap.c38 zend_shared_segment *shared_segment; in create_segments() local
46 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *)); in create_segments()
47 (*shared_segments_p)[0] = shared_segment; in create_segments()
57 if (shared_segment->p != MAP_FAILED) { in create_segments()
58 shared_segment->pos = 0; in create_segments()
59 shared_segment->size = requested_size; in create_segments()
66 if (shared_segment->p == MAP_FAILED) { in create_segments()
71 shared_segment->pos = 0; in create_segments()
72 shared_segment->size = requested_size; in create_segments()
77 static int detach_segment(zend_shared_segment *shared_segment) in detach_segment() argument
[all …]
H A Dshared_alloc_posix.c41 zend_shared_segment_posix *shared_segment; in create_segments() local
51 (*shared_segments_p)[0] = shared_segment; in create_segments()
55 if (shared_segment->shm_fd == -1) { in create_segments()
60 if (ftruncate(shared_segment->shm_fd, requested_size) != 0) { in create_segments()
66shared_segment->common.p = mmap(0, requested_size, PROT_READ | PROT_WRITE, MAP_SHARED, shared_segm… in create_segments()
67 if (shared_segment->common.p == MAP_FAILED) { in create_segments()
74 shared_segment->common.pos = 0; in create_segments()
75 shared_segment->common.size = requested_size; in create_segments()
80 static int detach_segment(zend_shared_segment_posix *shared_segment) in detach_segment() argument
82 munmap(shared_segment->common.p, shared_segment->common.size); in detach_segment()
[all …]
H A Dshared_alloc_win32.c218 zend_shared_segment *shared_segment; in create_segments() local
281 shared_segment = (zend_shared_segment *)((char *)(*shared_segments_p) + sizeof(void *)); in create_segments()
282 (*shared_segments_p)[0] = shared_segment; in create_segments()
314shared_segment->p = mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS, 0, 0, 0, *wanted_… in create_segments()
341 shared_segment->pos = 0; in create_segments()
342 shared_segment->size = requested_size; in create_segments()
349 static int detach_segment(zend_shared_segment *shared_segment) in detach_segment() argument
H A Dshared_alloc_shm.c128 static int detach_segment(zend_shared_segment_shm *shared_segment) in detach_segment() argument
130 shmdt(shared_segment->common.p); in detach_segment()
H A Dzend_shared_alloc.h80 typedef int (*detach_segment_t)(zend_shared_segment *shared_segment);

Completed in 19 milliseconds