Manifest of check-in
[2c7022a845]
- * 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:38:44.
B 37b40b2e2ea461bd75cd43fd98f38bac2f421581
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:38:44
F ChangeLog 80f1d2e23ce8ddde7a066f49629288945a50b4a3
F generic/tclCompile.c 3c866db65577c344ec19c47a2487e899e06034bd
F generic/tclProc.c ac65eb31d511510e4c5cb154ce505459e3dc40ec
F tests/execute.test 9c4d8871acd53c2a0069c5bddc1293120e78947d
P 37b40b2e2ea461bd75cd43fd98f38bac2f421581
U dgp
Z 9d07b8d1c3e1b1b5ce99412748b50c8c