pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1174:    }    return res;   }      void count_memory_in_catch_contexts(size_t *num, size_t *size )   {    *num = (num_catch_ctx-num_free_catch_ctx);    *size = num_catch_ctx * (sizeof(struct catch_context)+8); /* assumes 8 bytes overhead. */   }    + #ifdef DO_PIKE_CLEANUP   static void free_all_catch_context_blocks(void)   {    struct catch_context *x = free_catch_context, *n;    while( x )    {    PIKE_MEM_RW(x->prev);    n = x->prev;    free( x );    x = n;    }    free_catch_context = NULL;   } -  + #endif      static int catching_eval_instruction (PIKE_OPCODE_T *pc);         #ifdef PIKE_USE_MACHINE_CODE   #ifdef OPCODE_INLINE_RETURN   /* Catch notes:    *    * Typical F_CATCH use:    *
pike.git/src/interpret.c:2025:   }      void count_memory_in_pike_frames(size_t *num, size_t *size )   {    *num = num_pike_frames;    *size = num_pike_frame_chunks * (FRAME_CHUNK_SIZE*8);   }   #undef FRAMES_PER_CHUNK   #undef FRAME_CHUNK_SIZE    + #ifdef DO_PIKE_CLEANUP   static void free_all_pike_frame_blocks(void)   {    struct pike_frame_chunk *x = pike_frame_chunks, *n;    while( x )    {    n = x->next;    free(x);    x = n;    }    free_pike_frame = NULL;    pike_frame_chunks = NULL;    num_pike_frames=0;    num_pike_frame_chunks=0;   } -  + #endif      void really_free_pike_scope(struct pike_frame *scope)   {    if(scope->flags & PIKE_FRAME_MALLOCED_LOCALS)    {    free_mixed_svalues(scope->locals,scope->num_locals);    free((char *)(scope->locals));   #ifdef PIKE_DEBUG    scope->flags&=~PIKE_FRAME_MALLOCED_LOCALS;   #endif