pike.git / src / gc.c

version» Context lines:

pike.git/src/gc.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: gc.c,v 1.254 2004/05/23 00:44:34 nilsson Exp $ + || $Id: gc.c,v 1.255 2004/05/29 18:13:41 grubba Exp $   */      #include "global.h"      struct callback *gc_evaluator_callback=0;      #include "array.h"   #include "multiset.h"   #include "mapping.h"   #include "object.h"
pike.git/src/gc.c:26:   #include "interpret.h"   #include "bignum.h"   #include "pike_threadlib.h"      #include "gc.h"   #include "main.h"   #include <math.h>      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.254 2004/05/23 00:44:34 nilsson Exp $"); + RCSID("$Id: gc.c,v 1.255 2004/05/29 18:13:41 grubba Exp $");      int gc_enabled = 1;      /* These defaults are only guesses and hardly tested at all. Please improve. */   double gc_garbage_ratio_low = 0.2;   double gc_time_ratio = 0.05;   double gc_garbage_ratio_high = 0.5;      /* This slowness factor approximately corresponds to the average over    * the last ten gc rounds. (0.9 == 1 - 1/10) */
pike.git/src/gc.c:433:    e, p->inherits[e].name ? p->inherits[e].name->str : "no name");    break;    }       if(p->constants &&    ptr >= (char *)p->constants &&    ptr < (char*)(p->constants+p->num_constants))    {    e = ((char *)ptr - (char *)(p->constants)) /    sizeof(struct program_constant); + #if 0    fprintf(stderr,"%*s **In p->constants[%"PRINTPTRDIFFT"d] (%s)\n",indent,"",    e, p->constants[e].name ? p->constants[e].name->str : "no name"); -  + #else /* !0 */ +  fprintf(stderr,"%*s **In p->constants[%"PRINTPTRDIFFT"d] (%d)\n",indent,"", +  e, p->constants[e].offset); + #endif /* 0 */    break;    }          if(p->identifiers &&    ptr >= (char *)p->identifiers &&    ptr < (char*)(p->identifiers+p->num_identifiers))    {    e = ((char *)ptr - (char *)(p->identifiers)) /    sizeof(struct identifier);