pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:23:   #include "constants.h"   #include "interpret.h"   #include "bignum.h"      #include "gc.h"   #include "main.h"   #include <math.h>      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.124 2000/08/17 18:57:37 grubba Exp $"); + RCSID("$Id: gc.c,v 1.125 2000/08/22 17:20:38 grubba Exp $");      /* Run garbage collect approximately every time    * 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:2215:    push_int64(objects_freed);       push_constant_text("last_gc");    push_int64(last_gc);       push_constant_text("projected_garbage");    push_float(objects_freed * (double) num_allocs / (double) alloc_threshold);       f_aggregate_mapping(14);   } +  + void cleanup_gc(void) + { + #ifdef PIKE_DEBUG +  if (gc_evaluator_callback) { +  remove_callback(gc_evaluator_callback); +  gc_evaluator_callback = NULL; +  } + #endif /* PIKE_DEBUG */ + }