Lines Matching refs:mem
147 static void bzero_aligned(void *mem, size_t size) in bzero_aligned() argument
150 memset(mem, 0, size); in bzero_aligned()
152 char *p = (char*)mem; in bzero_aligned()
162 char *p = (char*)mem; in bzero_aligned()
174 memset(mem, 0, size); in bzero_aligned()
1503 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 64); in store_script_in_file_cache()
1504 ZCG(mem) = (void*)(((uintptr_t)ZCG(mem) + 63L) & ~63L); in store_script_in_file_cache()
1507 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used + 8); in store_script_in_file_cache()
1508 ZCG(mem) = (void*)(((uintptr_t)ZCG(mem) + 7L) & ~7L); in store_script_in_file_cache()
1510 ZCG(mem) = zend_arena_alloc(&CG(arena), memory_used); in store_script_in_file_cache()
1523 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in store_script_in_file_cache()
1525 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in store_script_in_file_cache()
1528 (size_t)new_persistent_script->mem, in store_script_in_file_cache()
1529 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in store_script_in_file_cache()
1530 (size_t)ZCG(mem)); in store_script_in_file_cache()
1612 ZCG(mem) = zend_shared_alloc_aligned(memory_used); in cache_script_in_shared_memory()
1613 if (!ZCG(mem)) { in cache_script_in_shared_memory()
1624 bzero_aligned(ZCG(mem), memory_used); in cache_script_in_shared_memory()
1636 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) { in cache_script_in_shared_memory()
1638 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER… in cache_script_in_shared_memory()
1641 (size_t)new_persistent_script->mem, in cache_script_in_shared_memory()
1642 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size), in cache_script_in_shared_memory()
1643 (size_t)ZCG(mem)); in cache_script_in_shared_memory()
2373 ZCG(mem) = zend_shared_alloc(size + 8); in zend_accel_inheritance_cache_add()
2375 ZCG(mem) = zend_shared_alloc(size); in zend_accel_inheritance_cache_add()
2378 if (!ZCG(mem)) { in zend_accel_inheritance_cache_add()
2389 ZCG(mem) = (void*)(((uintptr_t)ZCG(mem) + 7L) & ~7L); in zend_accel_inheritance_cache_add()
2392 memset(ZCG(mem), 0, size); in zend_accel_inheritance_cache_add()
2393 entry = (zend_inheritance_cache_entry*)ZCG(mem); in zend_accel_inheritance_cache_add()
2394 ZCG(mem) = (char*)ZCG(mem) + in zend_accel_inheritance_cache_add()
2409 entry->dependencies = (zend_class_dependency*)ZCG(mem); in zend_accel_inheritance_cache_add()
2418 ZCG(mem) = (char*)ZCG(mem) + zend_hash_num_elements(dependencies) * sizeof(zend_class_dependency); in zend_accel_inheritance_cache_add()
2439 if ((char*)entry + size != (char*)ZCG(mem)) { in zend_accel_inheritance_cache_add()
2441 ((char*)entry + size < (char*)ZCG(mem)) ? ACCEL_LOG_ERROR : ACCEL_LOG_WARNING, in zend_accel_inheritance_cache_add()
2446 (size_t)ZCG(mem)); in zend_accel_inheritance_cache_add()
2952 void *mem; in accel_remap_huge_pages() local
2954 mem = mmap(NULL, size, in accel_remap_huge_pages()
2958 if (mem == MAP_FAILED) { in accel_remap_huge_pages()
2964 memcpy(mem, start, real_size); in accel_remap_huge_pages()
2981 memcpy(start, mem, real_size); in accel_remap_huge_pages()
2983 munmap(mem, size); in accel_remap_huge_pages()
2990 memcpy(start, mem, real_size); in accel_remap_huge_pages()
2992 munmap(mem, size); in accel_remap_huge_pages()
3003 memcpy(start, mem, real_size); in accel_remap_huge_pages()
3006 munmap(mem, size); in accel_remap_huge_pages()
4236 ZCG(mem) = zend_shared_alloc_aligned(memory_used);
4237 if (!ZCG(mem)) {
4242 bzero_aligned(ZCG(mem), memory_used);
4252 if ((char*)new_persistent_script->mem + new_persistent_script->size != (char*)ZCG(mem)) {
4254 …((char*)new_persistent_script->mem + new_persistent_script->size < (char*)ZCG(mem)) ? ACCEL_LOG_ER…
4257 (size_t)new_persistent_script->mem,
4258 (size_t)((char *)new_persistent_script->mem + new_persistent_script->size),
4259 (size_t)ZCG(mem));