.
D 2005-10-22T17:48:24
J assignee vincentdarley
J cmimetype text/plain
J comment using\sglob,\swould\slose\sa\snumber\sof\sobjects\sfor\severy\s\ninvocation.\sproblem\swas\sthat\san\sargument\sto\sthe\sglob\s\nfunction\swould\sbe\sincremened\s(pathptr)\sand\snever\s\ndecrement\sit,\n\ni\sadded\sdecr\slogic\sto\sall\spaths,\si\smay\shave\smissed\ssome!\ni\sonly\stested\sthe\scase\swere\sglob\swould\swork,\sand\sreturn\s\nsome\svalues\n\ni\sam\sincluding\ssimple\stest\sprogram\sthat\sshows\sthe\s\nproblem,\nnote\sneed\sto\srun\son\sa\sdebug\sversion\ssince\sit\suses\s\nthe\s'memory'\scommand\n\nalso\sit\swould\sbe\snice\sif\sthe\smemry\sdump\s\nfunction\s'Tcl_DumpActiveMemory'\swas\smodified\sin\stwo\s\nareas\n\n1)\sdisplay\saddressed\swith\sleading\s0's\s(%p)\s-\smakes\s\nsearching\sbetween\sthe\soutput\sfile\sand\sother\sdebug\s\noutput\sfiles\sa\slittle\seasier,\n\n2)\sadd\sthreadid\sto\sthe\smemory\sheader\sso\sone\sknows\s\nwhich\sthread\sallocated\sthe\smemeory,\svery\susefull\sin\s\nmulti-threading\swork\n\n
J foundin obsolete:\s8.5a4
J priority 5\sMedium
J resolution None
J status Open
J submitter melbardis
J subsystem 36.\sPathname\sManagement
J title obj\sleak\sin\sTclGlob\s+\smem\sdump\senhancement\sreq
J type Bug
K 1335006fffffffffffffffffffffffffffffffff
U melbardis
Z 1ac42a0be0c1ee250b7bc2161b684a81