pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:1:   /*   || 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: program.c,v 1.772 2009/11/20 10:58:09 grubba Exp $ + || $Id: program.c,v 1.773 2009/11/28 13:36:21 mast Exp $   */      #include "global.h"   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "lex.h"
pike.git/src/program.c:10178:   void gc_mark_program_as_referenced(struct program *p)   {    debug_malloc_touch(p);       if (p->flags & PROGRAM_AVOID_CHECK) {    /* Program is in an inconsistent state.    * don't look closer at it.    */    debug_malloc_touch(p);    -  if (gc_mark(p)) { +  if (gc_mark(p, T_PROGRAM)) {    if (p == gc_mark_program_pos)    gc_mark_program_pos = p->next;    if (p == gc_internal_program)    gc_internal_program = p->next;    else {    DOUBLEUNLINK(first_program, p);    DOUBLELINK(first_program, p); /* Linked in first. */    }    }       return;    }    -  if(gc_mark(p)) +  if(gc_mark(p, T_PROGRAM))    GC_ENTER (p, T_PROGRAM) {    int e;       if (p == gc_mark_program_pos)    gc_mark_program_pos = p->next;    if (p == gc_internal_program)    gc_internal_program = p->next;    else {    DOUBLEUNLINK(first_program, p);    DOUBLELINK(first_program, p); /* Linked in first. */