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.82 2000/04/27 02:13:28 hubbe Exp $"); + RCSID("$Id: gc.c,v 1.83 2000/04/28 05:40:59 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:307:       case T_ARRAY:    {    struct array *a=(struct array *)memblock;    struct svalue *s=(struct svalue *)location;    fprintf(stderr,"%*s **In index %ld\n",indent,"",(long)(s-ITEM(a)));    break;    }    }    + #ifdef DEBUG_MALLOC    dmalloc_describe_location(memblock, location, indent); -  + #endif   }      static void gdb_gc_stop_here(void *a)   {    fprintf(stderr,"***One ref found%s.\n",found_where?found_where:"");    describe_something(found_in, found_in_type, 2, 1, DESCRIBE_NO_DMALLOC);    describe_location(found_in , found_in_type, gc_svalue_location,2,1,0);    fprintf(stderr,"----------end------------\n");   }