Lines Matching refs:mem
1391 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 64); in store_script_in_file_cache()
1392 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in store_script_in_file_cache()
1395 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 8); in store_script_in_file_cache()
1396 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 7L) & ~7L); in store_script_in_file_cache()
1398 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used); in store_script_in_file_cache()
1409 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in store_script_in_file_cache()
1411 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in store_script_in_file_cache()
1414 (size_t)new_persistent_script->mem, in store_script_in_file_cache()
1415 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in store_script_in_file_cache()
1416 (size_t)ZCG(mem)); in store_script_in_file_cache()
1514 ZCG(mem) = zend_shared_alloc(memory_used + 64); in cache_script_in_shared_memory()
1515 if (ZCG(mem)) { in cache_script_in_shared_memory()
1516 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory()
1518 memset(ZCG(mem), 0, memory_used); in cache_script_in_shared_memory()
1521 char *p = (char*)ZCG(mem); in cache_script_in_shared_memory()
1533 char *p = (char*)ZCG(mem); in cache_script_in_shared_memory()
1548 ZCG(mem) = zend_shared_alloc(memory_used); in cache_script_in_shared_memory()
1549 if (ZCG(mem)) { in cache_script_in_shared_memory()
1550 memset(ZCG(mem), 0, memory_used); in cache_script_in_shared_memory()
1553 if (!ZCG(mem)) { in cache_script_in_shared_memory()
1574 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_shared_memory()
1576 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in cache_script_in_shared_memory()
1579 (size_t)new_persistent_script->mem, in cache_script_in_shared_memory()
1580 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in cache_script_in_shared_memory()
1581 (size_t)ZCG(mem)); in cache_script_in_shared_memory()
2753 void *mem; in accel_remap_huge_pages() local
2755 mem = mmap(NULL, size, in accel_remap_huge_pages()
2759 if (mem == MAP_FAILED) { in accel_remap_huge_pages()
2765 memcpy(mem, start, size); in accel_remap_huge_pages()
2782 memcpy(start, mem, size); in accel_remap_huge_pages()
2784 munmap(mem, size); in accel_remap_huge_pages()
2791 memcpy(start, mem, size); in accel_remap_huge_pages()
2793 munmap(mem, size); in accel_remap_huge_pages()
2802 memcpy(start, mem, size); in accel_remap_huge_pages()
2805 munmap(mem, size); in accel_remap_huge_pages()