diff options
author | dkf <dkf@noemail.net> | 2008-08-20 15:41:19 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2008-08-20 15:41:19 (GMT) |
commit | 0fd5d63fa2f2f7b20d920a571e8ac3f9e3109881 (patch) | |
tree | 47c02de5808411400f650d853de4bcf335527b8c /generic/tclOO.c | |
parent | 0f64ddc5aa76c7355353b0798c805572cec684e4 (diff) | |
download | tcl-0fd5d63fa2f2f7b20d920a571e8ac3f9e3109881.zip tcl-0fd5d63fa2f2f7b20d920a571e8ac3f9e3109881.tar.gz tcl-0fd5d63fa2f2f7b20d920a571e8ac3f9e3109881.tar.bz2 |
Fix performance bug introduced by fix of [Bug 2037727]
FossilOrigin-Name: fbf4a7e36a841d285c06a3e40ac393e1115c6e18
Diffstat (limited to 'generic/tclOO.c')
-rw-r--r-- | generic/tclOO.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclOO.c b/generic/tclOO.c index 4db39c3..95926f2 100644 --- a/generic/tclOO.c +++ b/generic/tclOO.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclOO.c,v 1.14 2008/08/06 21:23:14 dgp Exp $ + * RCS: @(#) $Id: tclOO.c,v 1.15 2008/08/20 15:41:26 dkf Exp $ */ #ifdef HAVE_CONFIG_H @@ -455,6 +455,14 @@ AllocObject( TclSetNsPath((Namespace *) oPtr->namespacePtr, 1, &fPtr->helpersNs); /* + * Suppress use of compiled versions of the commands in this object's + * namespace and its children; causes wrong behaviour without expensive + * recompilation. [Bug 2037727] + */ + + ((Namespace *) oPtr->namespacePtr)->flags |= NS_SUPPRESS_COMPILATION; + + /* * Fill in the rest of the non-zero/NULL parts of the structure. */ |