<i>file exists, mtime... procedures leaks</i> status still Open with 4 other changes
by
.
D 2015-07-29T13:43:15.737
J icomment When\sI\srun\sscript\sbelow,\sI\sobserve\sfast\sand\smonotonous\sincrease\sof\smemory\susage\sin\stask\smanager:\r\nwhile\s{1}\s{\r\n\s\s\sset\spath\s[file\sjoin\sC:/\sexample.txt]\r\n\s\s\sfile\sexists\s$path\r\n}\r\n\r\nSame\sscript,\sbut\swith\s"file\sjoin"\sbefore\s"while"\sdoes\snot\sleak:\r\nset\spath\s[file\sjoin\sC:/\sexample.txt]\r\nwhile\s{1}\s{\r\n\s\s\sfile\sexists\s$path\r\n}\r\n\r\nI've\snoticed\sthat\safter\s"file"\soperation\svariable\s"path"\schanges\sit's\srepresentation\s(my\sguess\sis\sthat\sthis\sconversion\scould\sbe\ssource\sof\sthe\sleak):\r\n%\sset\spath\s[file\sjoin\sC:/\sexample.txt]\r\nC:/example.txt\r\n%\s::tcl::unsupported::representation\s$path\r\nvalue\sis\sa\sstring\swith\sa\srefcount\sof\s3,\sobject\spointer\sat\s000000000021BBA0,\sinternal\srepresentation\s00000000002159B0:0000000000000000,\sstring\srepresentation\s"C:/example.txt"\r\n%\sfile\sexists\s$path\r\n0\r\n%\s::tcl::unsupported::representation\s$path\r\nvalue\sis\sa\spath\swith\sa\srefcount\sof\s3,\sobject\spointer\sat\s000000000021BBA0,\sinternal\srepresentation\s0000000000246340:0000000000000000,\sstring\srepresentation\s"C:/example.txt"
J login RP.
J mimetype text/plain
J username RP.
K f00009f7ce4b58c8b6caedf976e37ea78be6d3c0
U RP.
Z c06c2f08876187eb3662e6bb86a7f2bd