cvs: ZendEngine2 / zend_alloc.c

From: Date: Wed, 25 Jul 2007 11:13:17 +0000
Subject: cvs: ZendEngine2 / zend_alloc.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5927@lists.php.net to get a copy of this message
dmitry Wed Jul 25 11:13:17 2007 UTC Modified files: /ZendEngine2 zend_alloc.c Log: Fixed bug #41713 (Persistent memory consumption on win32 since 5.2) http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.202&r2=1.203&diff_format=u Index: ZendEngine2/zend_alloc.c diff -u ZendEngine2/zend_alloc.c:1.202 ZendEngine2/zend_alloc.c:1.203 --- ZendEngine2/zend_alloc.c:1.202 Tue Jul 10 14:42:43 2007 +++ ZendEngine2/zend_alloc.c Wed Jul 25 11:13:17 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_alloc.c,v 1.202 2007/07/10 14:42:43 tony2001 Exp $ */ +/* $Id: zend_alloc.c,v 1.203 2007/07/25 11:13:17 dmitry Exp $ */ #include "zend.h" #include "zend_alloc.h" @@ -1591,6 +1591,15 @@ free(heap); } } else { +#ifdef HAVE_MEM_WIN32 + /* FIX for bug #41713 */ + /* TODO: add new "compact" handler */ + if (storage->handlers->dtor == zend_mm_mem_win32_dtor && + storage->handlers->init == zend_mm_mem_win32_init) { + HeapDestroy((HANDLE)storage->data); + storage->data = (void*)HeapCreate(HEAP_NO_SERIALIZE, 0, 0); + } +#endif heap->segments_list = NULL; zend_mm_init(heap); heap->real_size = 0;

« previous php.zend-engine.cvs (#5927) next »