Branch: Tag:

2010-04-15

2010-04-15 23:32:03 by Martin Stjernholm <mast@lysator.liu.se>

Added a few more assertions.

Rev: src/gc.c:1.343

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.342 2010/04/11 18:00:03 mast Exp $ + || $Id: gc.c,v 1.343 2010/04/15 23:32:03 mast Exp $   */      #include "global.h"
3557:    * follow the same reference several times, e.g. with shared mapping    * data blocks. */    ACCEPT_UNFINISHED_TYPE_FIELDS { +  assert (!gc_mark_queue.first); /* Should be empty. */    gc_mark_all_arrays();    gc_mark_run_queue();    gc_mark_all_multisets();
5060:    struct mc_marker *ref_to = find_mc_marker (thing);    int ref_from_flags;    +  assert (mc_pass);    assert (mc_lookahead < 0);   #ifdef PIKE_DEBUG    assert (mc_ref_from != (void *) (ptrdiff_t) -1);