cvs: ZendEngine2 / zend_alloc.c

From: Date: Mon, 24 Jun 2002 13:41:26 +0000
Subject: cvs: ZendEngine2 / zend_alloc.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-196@lists.php.net to get a copy of this message
andi Mon Jun 24 09:41:26 2002 EDT Modified files: /ZendEngine2 zend_alloc.c Log: - Don't use cache if we're using ZEND_MM Index: ZendEngine2/zend_alloc.c diff -u ZendEngine2/zend_alloc.c:1.104 ZendEngine2/zend_alloc.c:1.105 --- ZendEngine2/zend_alloc.c:1.104 Mon Jun 24 03:22:24 2002 +++ ZendEngine2/zend_alloc.c Mon Jun 24 09:41:26 2002 @@ -38,7 +38,11 @@ #endif +#ifdef ZEND_MM +#define ZEND_DISABLE_MEMORY_CACHE 1 +#else #define ZEND_DISABLE_MEMORY_CACHE 0 +#endif #ifdef ZEND_MM #define ZEND_DO_MALLOC(size) zend_mm_alloc(&AG(mm_heap), size) @@ -416,8 +420,12 @@ AG(allocated_memory_peak) = 0; #endif +#if ZEND_ENABLE_FAST_CACHE memset(AG(fast_cache_list_head), 0, sizeof(AG(fast_cache_list_head))); +#endif +#if !ZEND_DISABLE_MEMORY_CACHE memset(AG(cache_count), 0, sizeof(AG(cache_count))); +#endif #ifdef ZEND_MM zend_mm_startup(&AG(mm_heap), 256*1024);

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