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.111 2000/08/03 18:37:57 grubba Exp $"); + RCSID("$Id: gc.c,v 1.112 2000/08/10 08:33:00 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:517:   static void gdb_gc_stop_here(void *a, int weak)   {    fprintf(stderr,"***One %sref found%s.\n",    weak ? "weak " : "",    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");   }    - void debug_gc_xmark_svalues(struct svalue *s, int num, char *fromwhere) + void debug_gc_xmark_svalues(struct svalue *s, ptrdiff_t num, char *fromwhere)   {    found_in=(void *)fromwhere;    found_in_type=-1;    gc_xmark_svalues(s,num);    found_in_type=T_UNKNOWN;    found_in=0;   }    - void debug_gc_check_svalues(struct svalue *s, int num, TYPE_T t, void *data) + void debug_gc_check_svalues(struct svalue *s, ptrdiff_t num, TYPE_T t, void *data)   {    found_in=data;    found_in_type=t;    gc_check_svalues(s,num);    found_in_type=T_UNKNOWN;    found_in=0;   }    - void debug_gc_check_weak_svalues(struct svalue *s, int num, TYPE_T t, void *data) + void debug_gc_check_weak_svalues(struct svalue *s, ptrdiff_t num, TYPE_T t, void *data)   {    found_in=data;    found_in_type=t;    gc_check_weak_svalues(s,num);    found_in_type=T_UNKNOWN;    found_in=0;   }      void debug_gc_check_short_svalue(union anything *u, TYPE_T type, TYPE_T t, void *data)   {