]> granicus.if.org Git - php/commitdiff
- Do this someplace else.
authorAndi Gutmans <andi@php.net>
Thu, 18 May 2000 11:25:03 +0000 (11:25 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 18 May 2000 11:25:03 +0000 (11:25 +0000)
Zend/zend_alloc.c

index 2b1034eab115e11227177588721aa28ff7ba24fa..c023c6e16f38d498fc9c4f6987903096c75e8366 100644 (file)
@@ -338,6 +338,7 @@ ZEND_API void start_memory_manager(ALS_D)
        memset(AG(fast_cache_list_head), 0, sizeof(AG(fast_cache_list_head)));
        memset(AG(cache_count),0,MAX_CACHED_MEMORY*sizeof(unsigned char));
 
+#if 0
        /* Initialize cache, to prevent fragmentation */
        for (i=1; i<MAX_CACHED_MEMORY; i++) {
                for (j=0; j<MAX_CACHED_ENTRIES; j++) {
@@ -349,6 +350,7 @@ ZEND_API void start_memory_manager(ALS_D)
                        efree(cached_entries[i][j]);
                }
        }
+#endif
 }