Branch: Tag:

2003-02-01

2003-02-01 15:43:51 by Martin Stjernholm <mast@lysator.liu.se>

Enabled some consistency checks in the gc when compiled without rtldebug
(only activated on debug level 1 or higher). Always define _verify_internals
to be able to use this.

Made it possible to turn on trace messages for the gc only with
trace(1,"gc"). This is the embryo of a facility based trace system. Still to
do: Raise all the global trace levels to make room for gc only trace at
level 1, and fix a framework for trace facilities.

Rev: src/array.c:1.137
Rev: src/builtin.cmod:1.113
Rev: src/builtin_functions.c:1.466
Rev: src/gc.c:1.199
Rev: src/gc.h:1.97
Rev: src/mapping.c:1.162
Rev: src/multiset.c:1.68
Rev: src/object.c:1.218
Rev: src/program.c:1.477

2:   || 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: array.c,v 1.136 2003/01/14 05:23:09 nilsson Exp $ + || $Id: array.c,v 1.137 2003/02/01 15:43:50 mast Exp $   */      #include "global.h"
25:   #include "bignum.h"   #include "cyclic.h"    - RCSID("$Id: array.c,v 1.136 2003/01/14 05:23:09 nilsson Exp $"); + RCSID("$Id: array.c,v 1.137 2003/02/01 15:43:50 mast Exp $");      PMOD_EXPORT struct array empty_array=   {
2176:    } GC_CYCLE_LEAVE;   }    - #ifdef PIKE_DEBUG +    unsigned gc_touch_all_arrays(void)   {    unsigned n = 0;
2190: Inside #if defined(PIKE_DEBUG)
   } while (a != &empty_array);    return n;   } - #endif +       void gc_check_all_arrays(void)   {