cvs: pecl(APC_3_0) /apc apc_compile.c apc_globals.h apc_main.c php_apc.c

From: Date: Fri, 28 Mar 2008 18:35:41 +0000
Subject: cvs: pecl(APC_3_0) /apc apc_compile.c apc_globals.h apc_main.c php_apc.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-10094@lists.php.net to get a copy of this message
gopalv Fri Mar 28 18:35:41 2008 UTC Modified files: (Branch: APC_3_0) /pecl/apc apc_compile.c apc_globals.h apc_main.c php_apc.c Log: revert refcount_stack patches http://cvs.php.net/viewvc.cgi/pecl/apc/apc_compile.c?r1=3.87.2.1&r2=3.87.2.2&diff_format=u Index: pecl/apc/apc_compile.c diff -u pecl/apc/apc_compile.c:3.87.2.1 pecl/apc/apc_compile.c:3.87.2.2 --- pecl/apc/apc_compile.c:3.87.2.1 Tue Mar 25 18:04:53 2008 +++ pecl/apc/apc_compile.c Fri Mar 28 18:35:40 2008 @@ -28,7 +28,7 @@ */ -/* $Id: apc_compile.c,v 3.87.2.1 2008/03/25 18:04:53 gopalv Exp $ */ +/* $Id: apc_compile.c,v 3.87.2.2 2008/03/28 18:35:40 gopalv Exp $ */ #include "apc_compile.h" #include "apc_globals.h" @@ -2145,8 +2145,6 @@ sizeof(src->refcount[0]), apc_php_malloc); - apc_stack_push(APCG(refcount_stack), (void*)dst->refcount); - my_prepare_op_array_for_execution(dst,src TSRMLS_CC); return dst; http://cvs.php.net/viewvc.cgi/pecl/apc/apc_globals.h?r1=3.70.2.3&r2=3.70.2.4&diff_format=u Index: pecl/apc/apc_globals.h diff -u pecl/apc/apc_globals.h:3.70.2.3 pecl/apc/apc_globals.h:3.70.2.4 --- pecl/apc/apc_globals.h:3.70.2.3 Tue Mar 25 21:18:41 2008 +++ pecl/apc/apc_globals.h Fri Mar 28 18:35:40 2008 @@ -29,7 +29,7 @@ */ -/* $Id: apc_globals.h,v 3.70.2.3 2008/03/25 21:18:41 rasmus Exp $ */ +/* $Id: apc_globals.h,v 3.70.2.4 2008/03/28 18:35:40 gopalv Exp $ */ #ifndef APC_GLOBALS_H #define APC_GLOBALS_H @@ -58,7 +58,6 @@ /* module variables */ zend_bool initialized; /* true if module was initialized */ apc_stack_t* cache_stack; /* the stack of cached executable code */ - apc_stack_t* refcount_stack; /* the stack of refcounts to be free'd in request shutdown */ zend_bool cache_by_default; /* true if files should be cached unless filtered out */ /* false if files should only be cached if filtered in */ long slam_defense; /* Probability of a process not caching an uncached file */ http://cvs.php.net/viewvc.cgi/pecl/apc/apc_main.c?r1=3.103.2.1&r2=3.103.2.2&diff_format=u Index: pecl/apc/apc_main.c diff -u pecl/apc/apc_main.c:3.103.2.1 pecl/apc/apc_main.c:3.103.2.2 --- pecl/apc/apc_main.c:3.103.2.1 Tue Mar 25 18:04:53 2008 +++ pecl/apc/apc_main.c Fri Mar 28 18:35:40 2008 @@ -28,7 +28,7 @@ */ -/* $Id: apc_main.c,v 3.103.2.1 2008/03/25 18:04:53 gopalv Exp $ */ +/* $Id: apc_main.c,v 3.103.2.2 2008/03/28 18:35:40 gopalv Exp $ */ #include "apc_php.h" #include "apc_main.h" @@ -597,7 +597,6 @@ /* {{{ apc_deactivate */ static void apc_deactivate(TSRMLS_D) { - zend_uint *refcount_p; /* The execution stack was unwound, which prevented us from decrementing * the reference counts on active cache entries in my_execute. */ @@ -613,11 +612,6 @@ (apc_cache_entry_t*) apc_stack_pop(APCG(cache_stack)); if (cache_entry->data.file.classes) { - for (i = 0; cache_entry->data.file.functions[i].function != NULL; i++) { - zend_hash_del(EG(function_table), - cache_entry->data.file.functions[i].name, - cache_entry->data.file.functions[i].name_len+1); - } for (i = 0; cache_entry->data.file.classes[i].class_entry != NULL; i++) { #ifdef ZEND_ENGINE_2 centry = (void**)&pzce; /* a triple indirection to get zend_class_entry*** */ @@ -646,11 +640,6 @@ apc_cache_release(apc_cache, cache_entry); } - /* prevent memleak warnings on refcounts that have been alloc'd */ - while (apc_stack_size(APCG(refcount_stack)) > 0) { - refcount_p = (zend_uint*)apc_stack_pop(APCG(refcount_stack)); - efree(refcount_p); - } } /* }}} */ http://cvs.php.net/viewvc.cgi/pecl/apc/php_apc.c?r1=3.154.2.1&r2=3.154.2.2&diff_format=u Index: pecl/apc/php_apc.c diff -u pecl/apc/php_apc.c:3.154.2.1 pecl/apc/php_apc.c:3.154.2.2 --- pecl/apc/php_apc.c:3.154.2.1 Tue Mar 25 18:04:53 2008 +++ pecl/apc/php_apc.c Fri Mar 28 18:35:41 2008 @@ -26,7 +26,7 @@ */ -/* $Id: php_apc.c,v 3.154.2.1 2008/03/25 18:04:53 gopalv Exp $ */ +/* $Id: php_apc.c,v 3.154.2.2 2008/03/28 18:35:41 gopalv Exp $ */ #include "apc_zend.h" #include "apc_cache.h" @@ -78,7 +78,6 @@ apc_globals->filters = NULL; apc_globals->initialized = 0; apc_globals->cache_stack = apc_stack_create(0); - apc_globals->refcount_stack = apc_stack_create(0); apc_globals->cache_by_default = 1; apc_globals->slam_defense = 0; apc_globals->mem_size_ptr = NULL; @@ -227,7 +226,7 @@ #else php_info_print_table_row(2, "Locking type", "File Locks"); #endif - php_info_print_table_row(2, "Revision", "$Revision: 3.154.2.1 $"); + php_info_print_table_row(2, "Revision", "$Revision: 3.154.2.2 $"); php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__); php_info_print_table_end(); DISPLAY_INI_ENTRIES();

« previous php.pecl.cvs (#10094) next »