pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:11022:    reporter_program = 0;    }   #ifdef PIKE_THREADS    co_destroy(&Pike_compiler_cond);   #endif   }         PMOD_EXPORT void visit_program (struct program *p, int action, void *extra)   { +  visit_enter(p, T_PROGRAM, extra);    switch (action) {   #ifdef PIKE_DEBUG    default:    Pike_fatal ("Unknown visit action %d.\n", action);    case VISIT_NORMAL:    case VISIT_COMPLEX_ONLY:    break;   #endif    case VISIT_COUNT_BYTES:    mc_counted_bytes += p->total_size;
pike.git/src/program.c:11074:    }       for (e = p->num_strings - 1; e >= 0; e--)    visit_string_ref (strs[e], REF_TYPE_NORMAL, extra);    }       /* Strong ref follows. It must be last. */    if (p->parent)    visit_program_ref (p->parent, REF_TYPE_STRONG, extra);    } +  visit_leave(p, T_PROGRAM, extra);   }      static void gc_check_program(struct program *p);      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.