Lines Matching refs:mem

1229 	ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 64);  in cache_script_in_file_cache()
1230 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_file_cache()
1232 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used); in cache_script_in_file_cache()
1246 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_file_cache()
1248 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in cache_script_in_file_cache()
1251 new_persistent_script->mem, in cache_script_in_file_cache()
1252 (char *)new_persistent_script->mem + new_persistent_script->size, in cache_script_in_file_cache()
1253 ZCG(mem)); in cache_script_in_file_cache()
1317 ZCG(mem) = zend_shared_alloc(memory_used + 64); in cache_script_in_shared_memory()
1318 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory()
1320 ZCG(mem) = zend_shared_alloc(memory_used); in cache_script_in_shared_memory()
1322 if (!ZCG(mem)) { in cache_script_in_shared_memory()
1340 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_shared_memory()
1342 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in cache_script_in_shared_memory()
1345 new_persistent_script->mem, in cache_script_in_shared_memory()
1346 (char *)new_persistent_script->mem + new_persistent_script->size, in cache_script_in_shared_memory()
1347 ZCG(mem)); in cache_script_in_shared_memory()
2624 void *mem; in accel_remap_huge_pages() local
2626 mem = mmap(NULL, size, in accel_remap_huge_pages()
2630 if (mem == MAP_FAILED) { in accel_remap_huge_pages()
2636 memcpy(mem, start, size); in accel_remap_huge_pages()
2653 memcpy(start, mem, size); in accel_remap_huge_pages()
2655 munmap(mem, size); in accel_remap_huge_pages()
2662 memcpy(start, mem, size); in accel_remap_huge_pages()
2664 munmap(mem, size); in accel_remap_huge_pages()
2673 memcpy(start, mem, size); in accel_remap_huge_pages()
2676 munmap(mem, size); in accel_remap_huge_pages()