Branch: Tag:

2007-06-11

2007-06-11 18:28:53 by Martin Stjernholm <mast@lysator.liu.se>

Hopefully fixed bug that caused gc failures in dmalloc builds.
(Leaving the temporary extra debug around until it's verified.)

Rev: src/gc.c:1.291

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.290 2007/06/10 18:11:13 mast Exp $ + || $Id: gc.c,v 1.291 2007/06/11 18:28:53 mast Exp $   */      #include "global.h"
2680:    }    }    -  else { /* weak < 0 */ +  else if (weak < 0) {    struct gc_rec_frame *r;    CYCLE_DEBUG_MSG (cycle_frame, "gc_cycle_push, search strong");    /* Find the last weakly linked thing and the last one which
2727:    * rotation). */    CYCLE_DEBUG_MSG (weakly_refd, "gc_cycle_push, weak break");    rotate_rec_stack (cycle_frame, weakly_refd); +  /* FIXME: Motivate why it isn't necessary to mark up new +  * cycle_id's here. */   #ifdef DEBUG_MALLOC    check_cycle_ids_on_stack (cycle_frame, weakly_refd, "after weak break");   #endif