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.49 2000/03/07 21:23:41 hubbe Exp $"); + RCSID("$Id: gc.c,v 1.50 2000/03/07 21:32:17 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:316:       break;    }       case T_ARRAY:    fprintf(stderr,"**Describing array:\n");    debug_dump_array((struct array *)a);    break;       case T_MAPPING: -  fprintf(stderr,"**Describing mapping:\n"); -  debug_dump_mapping((struct mapping *)a); +     fprintf(stderr,"**Describing mapping data block:\n");    describe_something( ((struct mapping *)a)->data, -2, dm); -  +  fprintf(stderr,"**Describing mapping:\n"); +  debug_dump_mapping((struct mapping *)a);    break;       case T_STRING:    {    struct pike_string *s=(struct pike_string *)a;    fprintf(stderr,"**String length is %d:\n",s->len);    if(s->len>77)    {    fprintf(stderr,"** \"%60s ...\"\n",s->str);    }else{