pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/ -  + /**/   #include "global.h"      struct callback *gc_evaluator_callback=0;      #include "array.h"   #include "multiset.h"   #include "mapping.h"   #include "object.h"   #include "program.h"   #include "stralloc.h"   #include "stuff.h"   #include "error.h"   #include "pike_memory.h"   #include "pike_macros.h"   #include "pike_types.h"   #include "time_stuff.h"   #include "constants.h" - #include "block_alloc.h" +       #include "gc.h"   #include "main.h"   #include <math.h>    - RCSID("$Id: gc.c,v 1.42 1999/05/02 08:11:41 hubbe Exp $"); + #include "block_alloc.h"    -  + RCSID("$Id: gc.c,v 1.43 1999/09/25 20:50:15 grubba Exp $"); +    /* Run garbage collect approximate every time we have    * 20 percent of all arrays, objects and programs is    * garbage.    */      #define GC_CONST 20   #define MIN_ALLOC_THRESHOLD 1000   #define MAX_ALLOC_THRESHOLD 10000000   #define MULTIPLIER 0.9   #define MARKER_CHUNK_SIZE 1023