Branch: Tag:

2003-04-28

2003-04-28 00:34:12 by Martin Stjernholm <mast@lysator.liu.se>

Avoid false alarms with TRACE_UNFINISHED_TYPE_FIELDS.

Rev: src/error.c:1.107
Rev: src/gc.c:1.217

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: gc.c,v 1.216 2003/04/02 19:22:43 mast Exp $ + || $Id: gc.c,v 1.217 2003/04/28 00:34:12 mast Exp $   */      #include "global.h"
33:      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.216 2003/04/02 19:22:43 mast Exp $"); + RCSID("$Id: gc.c,v 1.217 2003/04/28 00:34:12 mast Exp $");      int gc_enabled = 1;   
2584:    Pike_in_gc=GC_PASS_CHECK;    gc_ext_weak_refs = 0;    /* First we count internal references */ +  ACCEPT_UNFINISHED_TYPE_FIELDS {    gc_check_all_arrays();    gc_check_all_multisets();    gc_check_all_mappings();    gc_check_all_programs();    gc_check_all_objects(); -  +  } END_ACCEPT_UNFINISHED_TYPE_FIELDS;      #ifdef PIKE_DEBUG    if(master_object)
2624:    /* Next we mark anything with external references. Note that we can    * follow the same reference several times, e.g. with shared mapping    * data blocks. */ +  ACCEPT_UNFINISHED_TYPE_FIELDS {    gc_mark_all_arrays();    run_queue(&gc_mark_queue);    gc_mark_all_multisets();
2637: Inside #if defined(PIKE_DEBUG)
  #ifdef PIKE_DEBUG    if(gc_debug) gc_mark_all_strings();   #endif /* PIKE_DEBUG */ +  } END_ACCEPT_UNFINISHED_TYPE_FIELDS;       GC_VERBOSE_DO(fprintf(stderr,    "| mark: %u markers referenced, %u weak references freed,\n"