cvs: ZendEngine2 / zend_alloc.c
| From: | Andi Gutmans | Date: | Wed, 19 Jun 2002 16:53:07 +0000 |
| Subject: | cvs: ZendEngine2 / zend_alloc.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-179@lists.php.net to get a copy of this message | ||
andi Wed Jun 19 12:53:07 2002 EDT
Modified files:
/ZendEngine2 zend_alloc.c
Log:
- Oops, this was supposed to be part of the previous #ifdef ZEND_MM change
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.99 ZendEngine2/zend_alloc.c:1.100
--- ZendEngine2/zend_alloc.c:1.99 Mon Jun 17 15:00:36 2002
+++ ZendEngine2/zend_alloc.c Wed Jun 19 12:53:06 2002
@@ -40,7 +40,7 @@
#define ZEND_DISABLE_MEMORY_CACHE 0
-#if ZEND_MM
+#ifdef ZEND_MM
#define ZEND_DO_MALLOC(size) zend_mm_alloc(&AG(mm_heap), size)
#define ZEND_DO_FREE(ptr) zend_mm_free(&AG(mm_heap), ptr)
#define ZEND_DO_REALLOC(ptr, size) zend_mm_realloc(&AG(mm_heap), ptr, size)
@@ -420,7 +420,7 @@
memset(AG(fast_cache_list_head), 0, sizeof(AG(fast_cache_list_head)));
memset(AG(cache_count), 0, sizeof(AG(cache_count)));
-#if ZEND_MM
+#ifdef ZEND_MM
zend_mm_startup(&AG(mm_heap), 256*1024);
#elif defined(ZEND_WIN32)
AG(memory_heap) = HeapCreate(HEAP_NO_SERIALIZE, 256*1024, 0);
@@ -461,7 +461,7 @@
#endif
zend_fast_cache_list_entry *fast_cache_list_entry, *next_fast_cache_list_entry;
-#if ZEND_MM
+#ifdef ZEND_MM
zend_mm_shutdown(&AG(mm_heap));
return;
#elif defined(ZEND_WIN32) && !ZEND_DEBUG