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.225 2003/08/20 16:43:57 mast Exp $ + || $Id: gc.c,v 1.226 2003/08/20 17:38:37 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.225 2003/08/20 16:43:57 mast Exp $"); + RCSID("$Id: gc.c,v 1.226 2003/08/20 17:38:37 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:2906:    Pike_fatal("Object count wrong after gc; expected %d, got %d.\n", num_objects, n);    GC_VERBOSE_DO(fprintf(stderr, "| posttouch: %u things\n", n));    }   #ifdef PIKE_DEBUG    if (gc_extra_refs) {    size_t e;    struct marker *m;    fprintf (stderr, "Lost track of %d extra refs to things in gc.\n"    "Searching for marker(s) with extra refs:\n", gc_extra_refs);    for (e = 0; e < marker_hash_table_size; e++) -  while ((m = marker_hash_table[e])) +  for (m = marker_hash_table[e]; m; m = m->next)    if (m->flags & GC_GOT_EXTRA_REF) {    fprintf (stderr, "========================================\n"    "Found marker with extra ref: ");    describe_marker (m);    fprintf (stderr, "Describing the thing pointed to:\n");    describe (m->data);    }    fprintf (stderr, "========================================\n"    "Done searching for marker(s) with extra refs.\n");    Pike_fatal("Lost track of %d extra refs to things in gc.\n", gc_extra_refs);