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.228 2003/09/08 20:05:20 mast Exp $ + || $Id: gc.c,v 1.229 2003/09/08 21:31:32 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.228 2003/09/08 20:05:20 mast Exp $"); + RCSID("$Id: gc.c,v 1.229 2003/09/08 21:31:32 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:1574: Inside #if defined(PIKE_DEBUG)
   return 0;    }       if (Pike_in_gc != GC_PASS_CHECK)    Pike_fatal("gc_mark_external() called in invalid gc pass.\n");      #ifdef DEBUG_MALLOC    if (gc_external_refs_zapped) {    fprintf (stderr, "One external ref to %p found%s.\n",    a, place ? place : ""); -  if (in) describe (in); +  if (gc_found_in) describe (gc_found_in);    return 0;    }   #endif       m=get_marker(a);    m->xrefs++;    m->flags|=GC_XREFERENCED;    if(Pike_in_gc == GC_PASS_CHECK &&    (m->refs + m->xrefs > *(INT32 *)a ||    (m->saved_refs != -1 && m->saved_refs != *(INT32 *)a)))