cvs: ZendEngine2 / zend_alloc.c

From: Date: Mon, 24 Jun 2002 13:45:21 +0000
Subject: cvs: ZendEngine2 / zend_alloc.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-198@lists.php.net to get a copy of this message
andi Mon Jun 24 09:45:21 2002 EDT Modified files: /ZendEngine2 zend_alloc.c Log: - MFZE1 Index: ZendEngine2/zend_alloc.c diff -u ZendEngine2/zend_alloc.c:1.105 ZendEngine2/zend_alloc.c:1.106 --- ZendEngine2/zend_alloc.c:1.105 Mon Jun 24 09:41:26 2002 +++ ZendEngine2/zend_alloc.c Mon Jun 24 09:45:21 2002 @@ -404,13 +404,6 @@ ZEND_API void start_memory_manager(TSRMLS_D) { -#if 0 -#ifndef ZTS - int i, j; - void *cached_entries[MAX_CACHED_MEMORY][MAX_CACHED_ENTRIES]; -#endif -#endif - AG(head) = NULL; #if MEMORY_LIMIT @@ -431,25 +424,6 @@ zend_mm_startup(&AG(mm_heap), 256*1024); #elif defined(ZEND_WIN32) AG(memory_heap) = HeapCreate(HEAP_NO_SERIALIZE, 256*1024, 0); -#endif - -#if 0 -#ifndef ZTS - /* Initialize cache, to prevent fragmentation */ - /* We can't do this in ZTS mode, because calling emalloc() from within start_memory_manager() - * will yield an endless recursion calling to alloc_globals_ctor() - */ - for (i=1; i<MAX_CACHED_MEMORY; i++) { - for (j=0; j<PRE_INIT_CACHE_ENTRIES; j++) { - cached_entries[i][j] = emalloc(8*i); - } - } - for (i=1; i<MAX_CACHED_MEMORY; i++) { - for (j=0; j<PRE_INIT_CACHE_ENTRIES; j++) { - efree(cached_entries[i][j]); - } - } -#endif #endif #if ZEND_DEBUG

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