1
0
Fork 0

use zend_llist instead of HashTable for gc_op_arrays

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@656 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 2009-07-31 09:41:19 +00:00
parent c2df47c060
commit 4f1ec33902
2 changed files with 4 additions and 4 deletions

View File

@ -1628,7 +1628,7 @@ void xc_gc_add_op_array(zend_op_array *op_array TSRMLS_DC) /* {{{ */
gc_op_array.num_args = op_array->num_args;
gc_op_array.arg_info = op_array->arg_info;
#ifdef ZEND_ENGINE_2
zend_hash_next_index_insert(&XG(gc_op_arrays), (void *) &gc_op_array, sizeof(gc_op_array), NULL);
zend_llist_add_element(&XG(gc_op_arrays), (void *) &gc_op_array);
#endif
}
/* }}} */
@ -1891,7 +1891,7 @@ static void xc_request_init(TSRMLS_D) /* {{{ */
}
#ifdef ZEND_ENGINE_2
zend_hash_init(&XG(gc_op_arrays), 32, NULL, xc_gc_op_array, 0);
zend_llist_init(&XG(gc_op_arrays), sizeof(xc_gc_op_array_t), xc_gc_op_array, 0);
#endif
#if PHP_API_VERSION <= 20041225
@ -1909,7 +1909,7 @@ static void xc_request_shutdown(TSRMLS_D) /* {{{ */
{
xc_entry_unholds(TSRMLS_C);
#ifdef ZEND_ENGINE_2
zend_hash_destroy(&XG(gc_op_arrays));
zend_llist_destroy(&XG(gc_op_arrays));
#endif
xc_gc_expires_php(TSRMLS_C);
xc_gc_expires_var(TSRMLS_C);

View File

@ -18,7 +18,7 @@ ZEND_BEGIN_MODULE_GLOBALS(xcache)
long var_ttl;
#ifdef ZEND_ENGINE_2
HashTable gc_op_arrays;
zend_llist gc_op_arrays;
#endif
#ifdef HAVE_XCACHE_CONSTANT