<i>Provide a way to completely disable tclsh history support.</i> status still Open with 4 other changes
by
.
D 2005-12-01T03:24:29
J icomment Logged\sIn:\sYES\s\nuser_id=21885\n\nI'm\snot\stalking\sabout\sa\smemory\sleak\s--\syes,\swe\smight\shave\nthose,\stoo\s--\sI'm\stalking\sabout\sa\s"resource\sabuse\sleak"\s--\nwhere\sone\sthread\srunning\ssome\sTcl\sscript\sis\susing/holding\son\nto\sa\ssizable\samount\sof\smemory\sand\snot\scleaning\sup\safter\sitself.\n\nCurrently,\sthere's\svery\slittle\sthat\sI\sknow\sof\sfor\sdebugging\nthis\sstuff.\s\sI\scan\suse\sthe\sseemingly\sunsupported\nTcl_GetMemoryInfo()\sbut\sthat's\snot\sfine-grained\senough\sto\nsolve\smy\sproblem.\n\nSo,\sI\slog\seach\sthread's\screation\sand\severy\stime\sa\sthread\nallocs/frees\smemory,\sthen\sdo\spoint-in-time\s"accounting"\nfiguring\sout\snet\smemory-in-use\sper\sthread\sand\stry\sto\sgraph\nit\sover\stime\sto\ssee\swhich\sthread\sis\susing\smemory\sand\stie\sit\nback\sto\swhat\sTcl\sscript\sit\smight\shave\sbeen\sexecuting\sat\sthe\ntime.\n\nI'm\sthinking\sabout\shijacking\sTcl_NewObj()\sand\sfriends\sto\ntrack\sTcl_Obj\screation/destruction,\sbut\sthat's\sgoing\sto\sbe\sa\nlot\sof\swork\s(but\sprobably\s*exactly*\swhat\sI\sneed,\shere).\n\n
J login dossy
J mimetype text/plain
J username dossy
K 1190441fffffffffffffffffffffffffffffffff
U dossy
Z e1becfb03acce50131a5c3472ebdf420