Changeset 656 in svn for trunk/xcache.c


Ignore:
Timestamp:
2009-07-31T11:41:19+02:00 (6 years ago)
Author:
Xuefer
Message:

use zend_llist instead of HashTable? for gc_op_arrays

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r653 r656  
    16291629    gc_op_array.arg_info = op_array->arg_info;
    16301630#ifdef ZEND_ENGINE_2
    1631     zend_hash_next_index_insert(&XG(gc_op_arrays), (void *) &gc_op_array, sizeof(gc_op_array), NULL);
     1631    zend_llist_add_element(&XG(gc_op_arrays), (void *) &gc_op_array);
    16321632#endif
    16331633}
     
    18921892
    18931893#ifdef ZEND_ENGINE_2
    1894     zend_hash_init(&XG(gc_op_arrays), 32, NULL, xc_gc_op_array, 0);
     1894    zend_llist_init(&XG(gc_op_arrays), sizeof(xc_gc_op_array_t), xc_gc_op_array, 0);
    18951895#endif
    18961896
     
    19101910    xc_entry_unholds(TSRMLS_C);
    19111911#ifdef ZEND_ENGINE_2
    1912     zend_hash_destroy(&XG(gc_op_arrays));
     1912    zend_llist_destroy(&XG(gc_op_arrays));
    19131913#endif
    19141914    xc_gc_expires_php(TSRMLS_C);
Note: See TracChangeset for help on using the changeset viewer.