Branch: Tag:

2003-02-01

2003-02-01 15:37:23 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") (intended to be compatible with a facility based
trace system in 7.5).

Rev: src/array.c:1.134
Rev: src/builtin.cmod:1.103
Rev: src/builtin_functions.c:1.455
Rev: src/gc.c:1.192
Rev: src/gc.h:1.94
Rev: src/mapping.c:1.158
Rev: src/multiset.c:1.61
Rev: src/object.c:1.213
Rev: src/program.c:1.467

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.133 2002/12/01 00:16:54 mast Exp $ + || $Id: array.c,v 1.134 2003/02/01 15:37:22 mast Exp $   */      #include "global.h"
25:   #include "bignum.h"   #include "cyclic.h"    - RCSID("$Id: array.c,v 1.133 2002/12/01 00:16:54 mast Exp $"); + RCSID("$Id: array.c,v 1.134 2003/02/01 15:37:22 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)   {