Branch: Tag:

2000-04-15

2000-04-15 12:43:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>

gc_check_program() and gc_mark_program_as_referenced()
now look at the PROGRAM_AVOID_CHECK flag.

Rev: src/program.c:1.227

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.226 2000/04/15 05:05:28 hubbe Exp $"); + RCSID("$Id: program.c,v 1.227 2000/04/15 12:43:58 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
3474: Inside #if defined(GC2)
  {    debug_malloc_touch(p);    +  if (p->flags & PROGRAM_AVOID_CHECK) { +  /* Program is in an inconsistant state. +  * don't look closer at it. +  */ +  debug_malloc_touch(p); +  gc_mark(p); +  return; +  } +     if(gc_mark(p))    {    int e;
3499: Inside #if defined(GC2)
      debug_malloc_touch(p);    +  if (p->flags & PROGRAM_AVOID_CHECK) { +  /* Program is in an inconsistant state. +  * don't look closer at it. +  */ +  debug_malloc_touch(p); +  return; +  } +     for(e=0;e<p->num_constants;e++) {    debug_gc_check_svalues(& p->constants[e].sval, 1, T_PROGRAM, p);    }