Lines Matching refs:mapping_base
43 static void *mapping_base; variable
123 mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS, 0, 0, ACCEL_BASE_POINTER_SIZE, NULL); in zend_shared_alloc_reattach()
124 if (mapping_base == NULL) { in zend_shared_alloc_reattach()
130 wanted_mapping_base = ((void**)mapping_base)[0]; in zend_shared_alloc_reattach()
131 execute_ex_base = ((void**)mapping_base)[1]; in zend_shared_alloc_reattach()
132 UnmapViewOfFile(mapping_base); in zend_shared_alloc_reattach()
157 …mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS, 0, 0, pre_size + ZEND_ALIGNED_SIZE(si… in zend_shared_alloc_reattach()
158 if (mapping_base == NULL) { in zend_shared_alloc_reattach()
163 …_globals *)((char *)((zend_smm_shared_globals *)mapping_base)->app_shared_globals + ((char *)mappi… in zend_shared_alloc_reattach()
178 …mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS|FILE_MAP_EXECUTE, 0, 0, 0, wanted_mapp… in zend_shared_alloc_reattach()
180 if (mapping_base == NULL) { in zend_shared_alloc_reattach()
190 if (!VirtualProtect(mapping_base, requested_size, PAGE_READWRITE, &old)) { in zend_shared_alloc_reattach()
197 smm_shared_globals = (zend_smm_shared_globals *) ((char*)mapping_base + ACCEL_BASE_POINTER_SIZE); in zend_shared_alloc_reattach()
301 …shared_segment->p = mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS|FILE_MAP_EXECUTE, … in create_segments()
306 } while (!mapping_base); in create_segments()
308 if (mapping_base == NULL) { in create_segments()
317 if (!VirtualProtect(mapping_base, requested_size, PAGE_READWRITE, &old)) { in create_segments()
323 ((void**)mapping_base)[0] = mapping_base; in create_segments()
324 ((void**)mapping_base)[1] = (void*)execute_ex; in create_segments()
338 if (mapping_base) { in detach_segment()
339 UnmapViewOfFile(mapping_base); in detach_segment()
340 mapping_base = NULL; in detach_segment()