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.199 2003/09/09 15:00:58 mast Exp $ + || $Id: gc.c,v 1.200 2003/10/20 13:17:27 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:24:   #include "constants.h"   #include "interpret.h"   #include "bignum.h"      #include "gc.h"   #include "main.h"   #include <math.h>      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.199 2003/09/09 15:00:58 mast Exp $"); + RCSID("$Id: gc.c,v 1.200 2003/10/20 13:17:27 mast 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 2000000000   #define MULTIPLIER 0.9
pike.git/src/gc.c:947: Inside #if defined(PIKE_DEBUG)
      fprintf(stderr,"%*s**Program id: %ld, flags: %x\n",indent,"",    (long)(p->id),    p->flags);       if(p->flags & PROGRAM_HAS_C_METHODS)    {    fprintf(stderr,"%*s**The program was written in C.\n",indent,"");    }    -  tmp = debug_get_program_line(p, &line); +  tmp = debug_get_line(NULL, p, &line);    if(strcmp(tmp, "-"))    {    fprintf(stderr,"%*s**Location: %s:%ld\n",    indent, "", tmp, (long)line);    }       fprintf (stderr, "%*s**Identifiers:\n", indent, "");       for (id_idx = 0; id_idx < p->num_identifier_references; id_idx++) {    struct reference *id_ref = p->identifier_references + id_idx;