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.223 2003/08/02 01:10:53 mast Exp $ + || $Id: gc.c,v 1.224 2003/08/20 12:00:03 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.223 2003/08/02 01:10:53 mast Exp $"); + RCSID("$Id: gc.c,v 1.224 2003/08/20 12:00:03 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:1002:    case T_PIKE_FRAME: {    struct pike_frame *f = (struct pike_frame *) a;    do {    if (f->current_object) {    struct program *p = f->current_object->prog;    if (p) {    struct identifier *id = ID_FROM_INT(p, f->fun);    INT32 line;    struct pike_string *file;    if (IDENTIFIER_IS_PIKE_FUNCTION(id->identifier_flags) && -  id->func.offset && +  id->func.offset >= 0 &&    (file = get_line(p->program + id->func.offset, p, &line))) {    fprintf(stderr, "%*s**Function %s at %s:%ld\n",    indent, "", id->name->str, file->str, (long) line);    free_string(file);    }    else    fprintf(stderr, "%*s**Function %s at unknown location.\n",    indent, "", id->name->str);    }    fprintf(stderr, "%*s**Describing the current object:\n", indent, "");