cvs: ZendEngine2 / zend_alloc.c

From: Date: Mon, 24 Jun 2002 17:47:47 +0000
Subject: cvs: ZendEngine2 / zend_alloc.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-200@lists.php.net to get a copy of this message
andi Mon Jun 24 13:47:47 2002 EDT Modified files: /ZendEngine2 zend_alloc.c Log: - Fix crash bug and clean up a bit. Index: ZendEngine2/zend_alloc.c diff -u ZendEngine2/zend_alloc.c:1.106 ZendEngine2/zend_alloc.c:1.107 --- ZendEngine2/zend_alloc.c:1.106 Mon Jun 24 09:45:21 2002 +++ ZendEngine2/zend_alloc.c Mon Jun 24 13:47:46 2002 @@ -445,15 +445,15 @@ #ifdef ZEND_MM if (clean_cache) { zend_mm_shutdown(&AG(mm_heap)); - return; } + return; #elif defined(ZEND_WIN32) && !ZEND_DEBUG if (clean_cache && AG(memory_heap)) { HeapDestroy(AG(memory_heap)); return; } #endif -#if ZEND_DEBUG || !defined(ZEND_MM) +#if ZEND_ENABLE_FAST_CACHE for (fci=0; fci<MAX_FAST_CACHE_TYPES; fci++) { fast_cache_list_entry = AG(fast_cache_list_head)[fci]; while (fast_cache_list_entry) { @@ -463,7 +463,8 @@ } AG(fast_cache_list_head)[fci] = NULL; } - +#endif +#if !ZEND_DISABLE_MEMORY_CACHE if (1 || clean_cache) { zend_mem_header *ptr; @@ -479,7 +480,8 @@ AG(cache_count)[i] = 0; } } - +#endif +#if ZEND_DEBUG || !defined(ZEND_MM) p = AG(head); t = AG(head); while (t) { @@ -564,12 +566,6 @@ } } while (0); - -#if defined(ZEND_WIN32) && ZEND_DEBUG - if (clean_cache && AG(memory_heap)) { - HeapDestroy(AG(memory_heap)); - } -#endif #endif #endif

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