summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2004-05-26 20:55:16 +0000
committerAndi Gutmans <andi@php.net>2004-05-26 20:55:16 +0000
commit97dee3a8c213e36238b1dbde9e606ab134a784e8 (patch)
treecd2a97193766a72a75f4d24ccf34fba6c2a86752 /Zend/zend_alloc.c
parentb59d5af951fb20620db391a8a9c60a8794a2b3e6 (diff)
downloadphp-git-97dee3a8c213e36238b1dbde9e606ab134a784e8.tar.gz
- Fix memory manager problem
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index ac39502ec0..9b7585693e 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -496,11 +496,10 @@ ZEND_API void shutdown_memory_manager(int silent, int full_shutdown TSRMLS_DC)
#endif /* !ZEND_DISABLE_MEMORY_CACHE */
#if defined(ZEND_MM) && !ZEND_DEBUG
- zend_mm_shutdown(&AG(mm_heap));
if (full_shutdown) {
+ zend_mm_shutdown(&AG(mm_heap));
return;
}
- zend_mm_startup(&AG(mm_heap), 256*1024);
#elif defined(ZEND_WIN32) && !ZEND_DEBUG
if (full_shutdown && AG(memory_heap)) {
HeapDestroy(AG(memory_heap));
@@ -622,11 +621,10 @@ ZEND_API void shutdown_memory_manager(int silent, int full_shutdown TSRMLS_DC)
#endif
#if defined(ZEND_MM) && ZEND_DEBUG
- zend_mm_shutdown(&AG(mm_heap));
if (full_shutdown) {
+ zend_mm_shutdown(&AG(mm_heap));
return;
}
- zend_mm_startup(&AG(mm_heap), 256*1024);
#elif defined(ZEND_WIN32) && ZEND_DEBUG
if (full_shutdown && AG(memory_heap)) {
HeapDestroy(AG(memory_heap));