pike.git/
src/
program.c
Branch:
Tag:
Non-build tags
All tags
No tags
2006-07-04
2006-07-04 14:38:16 by Martin Stjernholm <mast@lysator.liu.se>
2900ba12e3cdd1a1de8054f69c8035e6586af11a (
11
lines) (+
3
/-
8
)
[
Show
|
Annotate
]
Branch:
7.4
Handle valgrind discarding in mexec_free.
Rev: src/pike_memory.c:1.145
Rev: src/program.c:1.501
2:
|| 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.
500
2005
/
11
/
16
13
:
15
:
26
grubba
Exp $
+
|| $Id: program.c,v 1.
501
2006
/
07
/
04
14
:
38
:
16
mast
Exp $
*/ #include "global.h"
-
RCSID("$Id: program.c,v 1.
500
2005
/
11
/
16
13
:
15
:
26
grubba
Exp $");
+
RCSID("$Id: program.c,v 1.
501
2006
/
07
/
04
14
:
38
:
16
mast
Exp $");
#include "program.h" #include "object.h" #include "dynamic_buffer.h"
2018:
DOUBLEUNLINK(first_program, p);
-
#if defined(PIKE_USE_MACHINE_CODE) && defined(VALGRIND_DISCARD_TRANSLATIONS)
-
if(p->program) {
-
VALGRIND_DISCARD_TRANSLATIONS(p->program,
-
p->num_program*sizeof(p->program[0]));
-
}
-
#endif /* PIKE_USE_MACHINE_CODE && VALGRIND_DISCARD_TRANSLATIONS */
+
if(p->flags & PROGRAM_OPTIMIZED) { #ifdef PIKE_USE_MACHINE_CODE