Lines Matching refs:ZCG

166 	zend_shared_alloc_create_lock(ZCG(accel_directives).lockfile_path);  in zend_shared_alloc_startup()
171 if (ZCG(accel_directives).memory_model && ZCG(accel_directives).memory_model[0]) { in zend_shared_alloc_startup()
172 char *model = ZCG(accel_directives).memory_model; in zend_shared_alloc_startup()
174 if (strncmp(ZCG(accel_directives).memory_model, "cgi", sizeof("cgi")) == 0) { in zend_shared_alloc_startup()
227 ZCG(locked) = 1; /* no need to perform a real lock at this point */ in zend_shared_alloc_startup()
254 ZCG(locked) = 0; in zend_shared_alloc_startup()
314 if (!ZCG(locked)) { in zend_shared_alloc()
341 if ((old_p = zend_hash_index_find_ptr(&ZCG(xlat_table), (zend_ulong)source)) != NULL) { in zend_shared_memdup_size()
353 if ((old_p = zend_hash_index_find_ptr(&ZCG(xlat_table), (zend_ulong)source)) != NULL) { in _zend_shared_memdup()
357 retval = ZCG(mem); in _zend_shared_memdup()
358 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
369 if (ZCG(locked)) { in zend_shared_alloc_safe_unlock()
408 ZCG(locked) = 1; in zend_shared_alloc_lock()
413 ZCG(locked) = 0; in zend_shared_alloc_unlock()
436 zend_hash_init(&ZCG(xlat_table), 128, NULL, NULL, 1); in zend_shared_alloc_init_xlat_table()
442 zend_hash_destroy(&ZCG(xlat_table)); in zend_shared_alloc_destroy_xlat_table()
447 zend_hash_clean(&ZCG(xlat_table)); in zend_shared_alloc_clear_xlat_table()
452 zend_hash_index_add_new_ptr(&ZCG(xlat_table), (zend_ulong)old, (void*)new); in zend_shared_alloc_register_xlat_entry()
459 if ((retval = zend_hash_index_find_ptr(&ZCG(xlat_table), (zend_ulong)old)) == NULL) { in zend_shared_alloc_get_xlat_entry()