<i>missing refCount management in Tcl_EvalObjv</i> status still Open with 4 other changes
by
.
D 2003-05-13T04:41:03
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nLooks\slike\sa\sbug\sin\salias\shandling\sto\sme.The\sproblem\sis\sthat\nthe\sdeleting\sof\sthe\salias\smakes\sthe\srefcounts\son\sthe\n(leading)\sarguments\sdecrease\sat\san\sunexpected\stime,\nresulting\sin\sthe\srefcounts\sfor\sthe\scommand\sobj\sdropping\sto\nzero\sbefore\sthe\sreturn\sof\sTcl_EvalObjv\s(so\sviolating\sthe\ngeneral\scontractural\sprinciple\sof\sTcl_Eval*\sfunctions.)\nTraces\sare\sthe\smost\sobvious\sway\sof\striggering\sthis,\syes,\sbut\nI'd\shate\sto\sswear\sthat\sthat's\sthe\sonly\sway\sit\scould\shappen.\nTwo\sways\sto\sfix\sthis:\n\s\s\s\s1)\sincr\sthe\srefcounts\sof\sthe\sprefix\spart\sof\sthe\salias\ncommand\sfor\sthe\sduration\sof\sthe\salias\scall\n\s\s\s\s2)\sdecouple\sthe\sAlias\sstructure\sfrom\sthe\salias\scommand\nlifespan,\sand\suse\srefcounting\sto\sdelete\s*that*\sonly\swhen\sthe\nlast\sreference\sto\sit\s(whether\sfrom\sthe\scommand\sor\sfrom\sthe\nexecuting\sinstances)\sgoes\saway.\n\nI\sprefer\sthe\ssecond\sway,\sbut\sthe\sfirst\swould\sdo\stoo.\s\sI\ndon't\sthink\seither\swill\sbe\stoo\sexpensive\sin\spractice.\n
J login dkf
J mimetype text/plain
J username dkf
K 730244ffffffffffffffffffffffffffffffffff
U dkf
Z a13c4b86428da7966905f1842506232a