pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:2004:   }      static struct pike_frame_chunk {    struct pike_frame_chunk *next;   } *pike_frame_chunks;   static int num_pike_frame_chunks;   static int num_pike_frames;      PMOD_EXPORT void really_free_pike_frame( struct pike_frame *X )   { -  free_object(X->current_object); +  do_free_object(X->current_object);    if(X->current_program)    free_program(X->current_program);    if(X->scope)    free_pike_scope(X->scope);    DO_IF_DEBUG(    if(X->flags & PIKE_FRAME_MALLOCED_LOCALS)    Pike_fatal("Pike frame is not supposed to have malloced locals here!\n"));    if (X->flags & PIKE_FRAME_SAVE_LOCALS) {    free(X->save_locals_bitmask);    X->flags &= ~PIKE_FRAME_SAVE_LOCALS;
pike.git/src/interpret.c:2039:   struct pike_frame *alloc_pike_frame(void)   {    struct pike_frame *res;    if( free_pike_frame )    {    res = free_pike_frame;    PIKE_MEMPOOL_ALLOC(&free_pike_frame, res, sizeof(struct pike_frame));    PIKE_MEM_RW_RANGE(&res->next, sizeof(void*));    free_pike_frame = res->next;    PIKE_MEM_WO_RANGE(&res->next, sizeof(void*)); +  memset(res, 0, sizeof(struct pike_frame));    gc_init_marker(res);    res->refs=0;    add_ref(res); /* For DMALLOC... */    res->flags=0;    res->next=0;    res->scope=0;    res->pc = NULL;       return res;    }