pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:22:   #include "time_stuff.h"   #include "constants.h"   #include "interpret.h"      #include "gc.h"   #include "main.h"   #include <math.h>      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.65 2000/04/15 05:05:28 hubbe Exp $"); + RCSID("$Id: gc.c,v 1.66 2000/04/15 05:22:00 hubbe 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
pike.git/src/gc.c:824:   }   #endif      void do_gc(void)   {    double tmp;    INT32 tmp2;    double multiplier;   #ifdef HAVE_GETHRTIME   #ifdef PIKE_DEBUG - #ifdef HAVE_GETHRTIME +     hrtime_t gcstarttime;   #endif   #endif       if(Pike_in_gc) return;    Pike_in_gc=1;       if(gc_evaluator_callback)    {    remove_callback(gc_evaluator_callback);