Branch: Tag:

2001-05-14

2001-05-14 03:32:06 by Fredrik H├╝binette (Hubbe) <hubbe@hubbe.net>

bugfix for gc on programs with PROGRAM_AVOID_CHECK

Rev: src/program.c:1.321

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.320 2001/05/10 22:14:38 hubbe Exp $"); + RCSID("$Id: program.c,v 1.321 2001/05/14 03:32:06 hubbe Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
4427: Inside #if defined(GC2)
   GC_CYCLE_ENTER(p, weak) {    int e;    -  if (p->flags & PROGRAM_AVOID_CHECK) -  /* Program is in an inconsistent state. -  * don't look closer at it. -  */ -  return; -  +  if (!(p->flags & PROGRAM_AVOID_CHECK)) +  {    if(p->parent)    gc_cycle_check_program(p->parent, 0);   
4447: Inside #if defined(GC2)
   if(e && p->inherits[e].prog)    gc_cycle_check_program(p->inherits[e].prog, 0);    } +  }    } GC_CYCLE_LEAVE;   }