Skip to content
Tcl Source Code Artifact [cd62c79f0e]
Login

Artifact [cd62c79f0e]

Artifact cd62c79f0e3f8f7c19ad95db61edee33c205d9a0:

Manifest of check-in [cd62c79f0e] - * generic/tclCompile.c: The value stashed in iPtr->compiledProcPtr * generic/tclProc.c: when compiling a proc survives too long. We * tests/execute.test: only need it there long enough for the right TclInitCompileEnv() call to re-stash it into envPtr->procPtr. Once that is done, the CompileEnv controls. If we let the value of iPtr->compiledProcPtr linger, though, then any other bytecode compile operation that takes place will also have its CompileEnv initialized with it, and that's not correct. The value is meant to control the compile of the proc body only, not other compile tasks that happen along. Thanks to Carlos Tasada for discovering and reporting the problem. [Bug 2802881]. by dgp on 2009-06-13 14:31:54.
B a534adff269ccff5f82343e689d934235467bb6e
C \s\s\s\s\s\s\s\s*\sgeneric/tclCompile.c:\sThe\svalue\sstashed\sin\siPtr->compiledProcPtr\n\s\s\s\s\s\s\s\s*\sgeneric/tclProc.c:\s\s\s\swhen\scompiling\sa\sproc\ssurvives\stoo\slong.\s\sWe\n\s\s\s\s\s\s\s\s*\stests/execute.test:\s\s\sonly\sneed\sit\sthere\slong\senough\sfor\sthe\sright\n\s\s\s\s\s\s\s\sTclInitCompileEnv()\scall\sto\sre-stash\sit\sinto\senvPtr->procPtr.\s\sOnce\n\s\s\s\s\s\s\s\sthat\sis\sdone,\sthe\sCompileEnv\scontrols.\s\sIf\swe\slet\sthe\svalue\sof\n\s\s\s\s\s\s\s\siPtr->compiledProcPtr\slinger,\sthough,\sthen\sany\sother\sbytecode\scompile\n\s\s\s\s\s\s\s\soperation\sthat\stakes\splace\swill\salso\shave\sits\sCompileEnv\sinitialized\n\s\s\s\s\s\s\s\swith\sit,\sand\sthat's\snot\scorrect.\s\sThe\svalue\sis\smeant\sto\scontrol\sthe\n\s\s\s\s\s\s\s\scompile\sof\sthe\sproc\sbody\sonly,\snot\sother\scompile\stasks\sthat\shappen\n\s\s\s\s\s\s\s\salong.\s\sThanks\sto\sCarlos\sTasada\sfor\sdiscovering\sand\sreporting\sthe\n\s\s\s\s\s\s\s\sproblem.\s\s[Bug\s2802881].\n
D 2009-06-13T14:31:54
F ChangeLog 0c9f3e7c14a44f899a2a2c5cca87db315862dd39
F doc/copy.n 66a5288a899fde9a4246133ecc26dadfa11c1581
F generic/tclCompile.c 2011203505d417250ffeead8f2b3cbdfc65e3595
F generic/tclDate.c f4aaf419232e8bebb6e603801c2dc548d1a15392
F generic/tclExecute.c 581c54a27b98c5aa3b2f955c82764e34004ed1e4
F generic/tclGetDate.y 39478fb26700021274d2a84571ef3122e7f94dae
F generic/tclProc.c 2fe28d424858c934d1d8b5588e916e9a2c1700cf
F generic/tclStringObj.c 7a82df6383740ac397b4d80e9f18ea45e21ccfca
F library/clock.tcl 02c31d9594d5b2faa08e865f389920d70565f32b
F library/tzdata/Africa/Cairo 413bde342a13238aee20e384216b6f59ba2820a1
F library/tzdata/Asia/Amman 37578d57c70c691078944418e42c86fb1962f4d1
F library/tzdata/Asia/Dhaka 1ea7a32af01bbf893d7222443c2b037125de312f
F tests/clock.test 805fca95f477e61236423c95c8ebec63aa2c24b7
F tests/execute.test 41ed3e9e4be0bf9af695d9dc6aa6ad3ef73a46a0
F tests/expr.test 34a43f8549f047103ca400c66ed6cd4aadef45bc
P 603364c9eb26da3757b3516cd4cb5fcb6e99ddec
U dgp
Z 0101846f05aee26b42866a986cdaad34