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.118 2000/08/11 14:27:41 grubba Exp $"); + RCSID("$Id: gc.c,v 1.119 2000/08/11 15:44:27 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:471:    {    struct array *a=(struct array *)memblock;    struct svalue *s=(struct svalue *)location;    fprintf(stderr,"%*s **In index %ld\n",indent,"",    DO_NOT_WARN((long)(s-ITEM(a))));    break;    }    }      #ifdef DEBUG_MALLOC +  /* FIXME: Is the following call correct? +  * Shouldn't the second argument be an offset? +  */    dmalloc_describe_location(memblock, location, indent);   #endif   }      static void describe_gc_frame(struct gc_frame *l)   {    if (l->frameflags & GC_POP_FRAME)    fprintf(stderr, "back=%p, prev=%p, next=%p, data=%p, cycle=%u, flags=0x%02x",    l->back, PREV(l), NEXT(l), l->data, CYCLE(l), l->frameflags);    else