Lines Matching refs:ZCG
165 zend_shared_alloc_create_lock(ZCG(accel_directives).lockfile_path); in zend_shared_alloc_startup()
170 if (ZCG(accel_directives).memory_model && ZCG(accel_directives).memory_model[0]) { in zend_shared_alloc_startup()
171 char *model = ZCG(accel_directives).memory_model; in zend_shared_alloc_startup()
173 if (strncmp(ZCG(accel_directives).memory_model, "cgi", sizeof("cgi")) == 0) { in zend_shared_alloc_startup()
226 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()
325 if (!ZCG(locked)) { in zend_shared_alloc()
353 if ((old_p = zend_hash_index_find_ptr(&ZCG(xlat_table), key)) != NULL) { in zend_shared_memdup_size()
357 zend_hash_index_add_new_ptr(&ZCG(xlat_table), key, source); in zend_shared_memdup_size()
369 if ((old_p = zend_hash_index_find_ptr(&ZCG(xlat_table), key)) != NULL) { in _zend_shared_memdup()
375 retval = ZCG(arena_mem); in _zend_shared_memdup()
376 ZCG(arena_mem) = (void*)(((char*)ZCG(arena_mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
378 retval = ZCG(mem); in _zend_shared_memdup()
379 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
387 zend_hash_index_add_new_ptr(&ZCG(xlat_table), key, retval); in _zend_shared_memdup()
437 if (ZCG(locked)) { in zend_shared_alloc_safe_unlock()
476 ZCG(locked) = 1; in zend_shared_alloc_lock()
490 ZCG(locked) = 0; in zend_shared_alloc_unlock()
507 zend_hash_init(&ZCG(xlat_table), 128, NULL, NULL, 0); in zend_shared_alloc_init_xlat_table()
513 zend_hash_destroy(&ZCG(xlat_table)); in zend_shared_alloc_destroy_xlat_table()
518 zend_hash_clean(&ZCG(xlat_table)); in zend_shared_alloc_clear_xlat_table()
523 return ZCG(xlat_table).nNumUsed; in zend_shared_alloc_checkpoint_xlat_table()
528 zend_hash_discard(&ZCG(xlat_table), checkpoint); in zend_shared_alloc_restore_xlat_table()
536 zend_hash_index_add_new_ptr(&ZCG(xlat_table), key, (void*)new); in zend_shared_alloc_register_xlat_entry()
545 if ((retval = zend_hash_index_find_ptr(&ZCG(xlat_table), key)) == NULL) { in zend_shared_alloc_get_xlat_entry()