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

From: Date: Fri, 28 Mar 2008 18:41:29 +0000
Subject: cvs: pecl /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-10095@lists.php.net to get a copy of this message
gopalv Fri Mar 28 18:41:29 2008 UTC Modified files: /pecl/apc apc_compile.c apc_globals.h apc_main.c php_apc.c Log: revert refcount_stack patch http://cvs.php.net/viewvc.cgi/pecl/apc/apc_compile.c?r1=3.91&r2=3.92&diff_format=u Index: pecl/apc/apc_compile.c diff -u pecl/apc/apc_compile.c:3.91 pecl/apc/apc_compile.c:3.92 --- pecl/apc/apc_compile.c:3.91 Mon Mar 24 01:01:25 2008 +++ pecl/apc/apc_compile.c Fri Mar 28 18:41:29 2008 @@ -28,7 +28,7 @@ */ -/* $Id: apc_compile.c,v 3.91 2008/03/24 01:01:25 shire Exp $ */ +/* $Id: apc_compile.c,v 3.92 2008/03/28 18:41:29 gopalv Exp $ */ #include "apc_compile.h" #include "apc_globals.h" @@ -1972,8 +1972,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.76&r2=3.77&diff_format=u Index: pecl/apc/apc_globals.h diff -u pecl/apc/apc_globals.h:3.76 pecl/apc/apc_globals.h:3.77 --- pecl/apc/apc_globals.h:3.76 Tue Mar 25 21:19:41 2008 +++ pecl/apc/apc_globals.h Fri Mar 28 18:41:29 2008 @@ -29,7 +29,7 @@ */ -/* $Id: apc_globals.h,v 3.76 2008/03/25 21:19:41 rasmus Exp $ */ +/* $Id: apc_globals.h,v 3.77 2008/03/28 18:41:29 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.110&r2=3.111&diff_format=u Index: pecl/apc/apc_main.c diff -u pecl/apc/apc_main.c:3.110 pecl/apc/apc_main.c:3.111 --- pecl/apc/apc_main.c:3.110 Mon Mar 24 01:07:14 2008 +++ pecl/apc/apc_main.c Fri Mar 28 18:41:29 2008 @@ -28,7 +28,7 @@ */ -/* $Id: apc_main.c,v 3.110 2008/03/24 01:07:14 shire Exp $ */ +/* $Id: apc_main.c,v 3.111 2008/03/28 18:41:29 gopalv Exp $ */ #include "apc_php.h" #include "apc_main.h" @@ -565,7 +565,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. */ @@ -579,11 +578,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++) { centry = (void**)&pzce; /* a triple indirection to get zend_class_entry*** */ if(zend_hash_find(EG(class_table), @@ -607,13 +601,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.165&r2=3.166&diff_format=u Index: pecl/apc/php_apc.c diff -u pecl/apc/php_apc.c:3.165 pecl/apc/php_apc.c:3.166 --- pecl/apc/php_apc.c:3.165 Mon Mar 24 01:01:25 2008 +++ pecl/apc/php_apc.c Fri Mar 28 18:41:29 2008 @@ -26,7 +26,7 @@ */ -/* $Id: php_apc.c,v 3.165 2008/03/24 01:01:25 shire Exp $ */ +/* $Id: php_apc.c,v 3.166 2008/03/28 18:41:29 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; @@ -223,7 +222,7 @@ #else php_info_print_table_row(2, "Locking type", "File Locks"); #endif - php_info_print_table_row(2, "Revision", "$Revision: 3.165 $"); + php_info_print_table_row(2, "Revision", "$Revision: 3.166 $"); php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__); php_info_print_table_end(); DISPLAY_INI_ENTRIES();

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