Manifest of check-in
[00a700e694]
- * 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:25:12.
B e5c0e5252054c6bcb220cf6f9581755d749feebd
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:25:12
F ChangeLog 9e737ed73d909c565990bcfc7e2106dcd5c3102d
F generic/tclCompile.c a6f5e27069b60a0d3773b77f713560d9e64f1246
F generic/tclDate.c f4aaf419232e8bebb6e603801c2dc548d1a15392
F generic/tclExecute.c a5492910125717314f060c00c40cff1564dfec51
F generic/tclGetDate.y d8b2e026b9d7e30e7908bb2a63287a3d5d312aca
F generic/tclProc.c 8646137eecfe423ae737efb2aa0d586dff22894c
F generic/tclStringObj.c ca69e4128fa496902002f546d0914d933a0b1fb2
F library/clock.tcl 215509cf87d058554429a0ab339478a9ba1a6ab4
F library/tzdata/Asia/Dhaka 1ea7a32af01bbf893d7222443c2b037125de312f
F tests/clock.test 9aa0e559aaa62b13dec18612c01388203501548f
F tests/execute.test fef533b96a16c0d5f8570444b250e90680f8e207
P 7bd82b7393937e2f61265e6ff8f2d6d3306b5514
U dgp
Z c0d4c3d63b3e467becd684d96179407f