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.72 2000/04/19 21:25:33 mast Exp $"); + RCSID("$Id: gc.c,v 1.73 2000/04/19 21:49:27 mast 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:865: Inside #if defined(HAVE_GETHRTIME)
   double multiplier;   #ifdef HAVE_GETHRTIME   #ifdef PIKE_DEBUG    hrtime_t gcstarttime;   #endif   #endif       if(Pike_in_gc) return;    Pike_in_gc=1;    +  /* Make sure there will be no callback to this while we're in the gc. */ +  destruct_objects_to_destruct(); +     if(gc_evaluator_callback)    {    remove_callback(gc_evaluator_callback);    gc_evaluator_callback=0;    }    -  remove_objects_to_destruct_callback(); -  +     tmp2=num_objects;      #ifdef PIKE_DEBUG    if(t_flag) {    fprintf(stderr,"Garbage collecting ... ");   #ifdef HAVE_GETHRTIME    gcstarttime = gethrtime();   #endif    }    if(num_objects < 0)