diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-05-16 20:23:00 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-05-16 20:23:00 (GMT) |
commit | 761df1dd737fda3e0bda124509e81dd92ff72e84 (patch) | |
tree | 0f8f6d076a0483dc37aec2b6f8ce11c3f0e4fb67 /generic/tclExecute.c | |
parent | a76b6923bb681fdc5ed9f24e8ab74c40dfd2fca9 (diff) | |
download | tcl-761df1dd737fda3e0bda124509e81dd92ff72e84.zip tcl-761df1dd737fda3e0bda124509e81dd92ff72e84.tar.gz tcl-761df1dd737fda3e0bda124509e81dd92ff72e84.tar.bz2 |
* generic/tclBasic.c (Tcl_DeleteInterp):
* generic/tclExecute.c (INST_START_CMD): interp deletion now
modifies the compileEpoch, eliminating the need for the check for
interp deletion in INST_START_CMD.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 6c29150..41e155e 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.128 2004/05/16 17:25:49 msofer Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.129 2004/05/16 20:23:01 msofer Exp $ */ #include "tclInt.h" @@ -1336,8 +1336,13 @@ TclExecuteByteCode(interp, codePtr) } case INST_START_CMD: - if ((!(iPtr->flags & DELETED) - && (codeCompileEpoch == iPtr->compileEpoch) + /* + * Remark that if the interpreter is marked for deletion + * its compileEpoch is modified, so that the epoch + * check also verifies that the interp is not deleted. + */ + + if (((codeCompileEpoch == iPtr->compileEpoch) && (codeNsEpoch == namespacePtr->resolverEpoch)) || codePrecompiled) { NEXT_INST_F(5, 0, 0); |