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.222 2003/08/01 22:46:06 mast Exp $ + || $Id: gc.c,v 1.223 2003/08/02 01:10:53 mast 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.222 2003/08/01 22:46:06 mast Exp $"); + RCSID("$Id: gc.c,v 1.223 2003/08/02 01:10:53 mast 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:874: Inside #if defined(PIKE_DEBUG)
   fprintf(stderr,"%*s**There is no parent (any longer?)\n",indent,"");    }    break;       case T_PROGRAM:    {    char *tmp;    INT32 line;    int foo=0;    -  fprintf(stderr,"%*s**Program id: %ld, flags: %x\n",indent,"", -  (long)(p->id), -  p->flags); +  fprintf(stderr,"%*s**Program id: %ld, flags: %x, parent id: %d\n", +  indent,"", (long)(p->id), p->flags, +  p->parent ? p->parent->id : -1);       if(p->flags & PROGRAM_HAS_C_METHODS)    {    fprintf(stderr,"%*s**The program was written in C.\n",indent,"");    }      #if 0    dump_program_tables (p, indent + 2);   #endif