Lines Matching refs:ZCG

194 	zend_shared_alloc_create_lock(ZCG(accel_directives).lockfile_path);  in zend_shared_alloc_startup()
199 if (ZCG(accel_directives).memory_model && ZCG(accel_directives).memory_model[0]) { in zend_shared_alloc_startup()
200 const char *model = ZCG(accel_directives).memory_model; in zend_shared_alloc_startup()
202 if (strncmp(ZCG(accel_directives).memory_model, "cgi", sizeof("cgi")) == 0) { in zend_shared_alloc_startup()
261 ZCG(locked) = 1; /* no need to perform a real lock at this point */ in zend_shared_alloc_startup()
302 ZCG(locked) = 0; in zend_shared_alloc_startup()
373 if (!ZCG(locked)) { in zend_shared_alloc()
407 if ((old_p = zend_hash_index_find_ptr(&ZCG(xlat_table), key)) != NULL) { in zend_shared_memdup_size()
411 zend_hash_index_add_new_ptr(&ZCG(xlat_table), key, source); in zend_shared_memdup_size()
423 if ((old_p = zend_hash_index_find_ptr(&ZCG(xlat_table), key)) != NULL) { in _zend_shared_memdup()
428 retval = ZCG(mem); in _zend_shared_memdup()
429 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
436 zend_hash_index_add_new_ptr(&ZCG(xlat_table), key, retval); in _zend_shared_memdup()
476 if (ZCG(locked)) { in zend_shared_alloc_safe_unlock()
483 ZEND_ASSERT(!ZCG(locked)); in zend_shared_alloc_lock()
517 ZCG(locked) = 1; in zend_shared_alloc_lock()
522 ZEND_ASSERT(ZCG(locked)); in zend_shared_alloc_unlock()
533 ZCG(locked) = 0; in zend_shared_alloc_unlock()
550 zend_hash_init(&ZCG(xlat_table), 128, NULL, NULL, 0); in zend_shared_alloc_init_xlat_table()
556 zend_hash_destroy(&ZCG(xlat_table)); in zend_shared_alloc_destroy_xlat_table()
561 zend_hash_clean(&ZCG(xlat_table)); in zend_shared_alloc_clear_xlat_table()
566 return ZCG(xlat_table).nNumUsed; in zend_shared_alloc_checkpoint_xlat_table()
571 zend_hash_discard(&ZCG(xlat_table), checkpoint); in zend_shared_alloc_restore_xlat_table()
579 zend_hash_index_add_new_ptr(&ZCG(xlat_table), key, (void*)value); in zend_shared_alloc_register_xlat_entry()
588 if ((retval = zend_hash_index_find_ptr(&ZCG(xlat_table), key)) == NULL) { in zend_shared_alloc_get_xlat_entry()