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.462 2002/11/24 22:47:06 mast Exp $ + || $Id: program.c,v 1.463 2002/11/25 03:16:08 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.462 2002/11/24 22:47:06 mast Exp $"); + RCSID("$Id: program.c,v 1.463 2002/11/25 03:16:08 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "language.h"   #include "lex.h"   #include "pike_macros.h"   #include "fsort.h"   #include "pike_error.h"   #include "docode.h"   #include "interpret.h"   #include "hashtable.h"   #include "main.h" -  + #include "pike_memory.h"   #include "gc.h"   #include "threads.h"   #include "constants.h"   #include "operators.h"   #include "builtin_functions.h"   #include "stuff.h"   #include "mapping.h"   #include "cyclic.h"   #include "security.h"   #include "pike_types.h"
pike.git/src/program.c:1881:    free_program(p->inherits[e].prog);    }    if(p->inherits[e].parent)    free_object(p->inherits[e].parent);    }       DOUBLEUNLINK(first_program, p);       if(p->flags & PROGRAM_OPTIMIZED)    { -  if(p->program) +  if(p->program) { + #ifdef PIKE_USE_MACHINE_CODE + #ifdef VALGRIND_DISCARD_TRANSLATIONS +  VALGRIND_DISCARD_TRANSLATIONS(p->program, +  p->num_program*sizeof(p->program[0])); + #endif /* VALGRIND_DISCARD_TRANSLATIONS */ + #endif /* PIKE_USE_MACHINE_CODE */    dmfree(p->program); -  +  }   #define FOO(NUMTYPE,TYPE,NAME) p->NAME=0;   #include "program_areas.h"    }else{   #define FOO(NUMTYPE,TYPE,NAME) \    if(p->NAME) { dmfree((char *)p->NAME); p->NAME=0; }   #include "program_areas.h"    }       EXIT_PIKE_MEMOBJ(p);