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.117 2000/08/11 13:17:13 grubba Exp $"); + RCSID("$Id: gc.c,v 1.118 2000/08/11 14:27:41 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:2179:   {    pop_n_elems(args);       push_constant_text("num_objects");    push_int(num_objects);       push_constant_text("num_allocs");    push_int(num_allocs);       push_constant_text("alloc_threshold"); -  push_int32(alloc_threshold); +  push_int64(alloc_threshold);       push_constant_text("objects_alloced"); -  push_int32(objects_alloced); +  push_int64(objects_alloced);       push_constant_text("objects_freed"); -  push_int32(objects_freed); +  push_int64(objects_freed);       push_constant_text("last_gc"); -  push_int32(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);   }