.
D 2001-11-12T13:07:00
J assignee hobbs
J cmimetype text/plain
J comment The\scode\sof\sthe\sINST_INVOKE\sinstructions\ntclExecute.c:TclExecuteByteCode)\sessentially\sduplicates\nthe\scode\sof\stclParse.c:EvalObjv.\n\nThe\sattached\spatch\sremoves\sthis\sduplication\sby\shavinf\nINST_INVOKE\sactually\scall\sthe\sobjv\sevaluation\scode\n(renamed\sto\sTclEvalObjvInternal\sandnot\sstatic\sto\ntclParse.c\sany\slonger).\n\nWhile\sdoing\sthis,\san\sinconsistency\sin\sthe\scomputation\nof\siPtr->numLevels\swas\sdiscovered:\s\n\n*\swhen\sevaluating\sa\sbytecode\s(INST_INVOKE),\sa\scommand\ninvocation\sdoes\snot\sincrease\sthe\slevels.\sIf\sthe\scommand\nis\sa\sproc\sinvocation,\sthe\slevels\sare\sincreased\swhile\nevaluating\sthe\sbody.\n\n*\swhen\sdoing\sa\sdirect\sevaluation\s(EvalObjv),\sa\scommand\ninvocation\sincreases\sthe\slevels.\sIf\sthe\scommand\sis\sa\nproc,\sthe\slevels\sare\sincreased\sagain\swhen\sevaluating\nthe\sbody.\n\nThis\sinconsistency\sis\salso\scorrected\sin\sthe\spatch.\sWith\nit,\sa\scommand\sinvocation\salways\sincreases\sthe\slevels.\nProc\scalls\sincrease\sthe\slevels\sjust\s*once*\s(by\ndecreasing\sit\sbefore\sevaling\sthe\sbody,\sand\srestoring\nthe\sold\svalue\safterwards).\n\nThe\slast\scorrection\sintroduced:\sthe\serror\smessage\son\ntoo\smany\snested\scalls\sis\snow\sthe\ssame\sfor\sall\spossible\nissuers.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter msofer
J subsystem 47.\sBytecode\sCompiler
J title duplicated\scode,\swrong\slevel\scounts
J type Bug
K 480896ffffffffffffffffffffffffffffffffff
U msofer
Z 008108454efedcf5747e7e67199d301e