Skip to content
Tcl Source Code Artifact [6c1607e6e8]
Login

Artifact [6c1607e6e8]

Artifact 6c1607e6e8b36b5cedde6935de1ce0e0999f3a20:

Ticket change [6c1607e6e8] - Ticket [1804709fffffffff|1804709fff] <i>memory leak</i> status still Open with 4 other changes by dkf on 2007-09-30 06:40:33.
D 2007-09-30T06:40:33
J icomment Logged\sIn:\sYES\s\nuser_id=79902\nOriginator:\sNO\n\nThis\sis\snot\sa\sbug:\sthis\sis\sexactly\show\sthings\sare\sdesigned\sto\swork.\sIn\sthe\ssecond\scase\s(behind\sthe\sscenes)\seach\svalue\sin\sthe\slist\sis\sactually\sread-only\sshared\swith\sall\sthe\sothers,\sbut\sin\sthe\sfirst\scase\seach\sof\sthe\smembers\sis\snot\sshared\ssince\sthe\sTcl\simplementation\sis\snot\ssmart\senough\sto\sfigure\sout\sthat\s[string\srepeat]\scan\sbe\sshared\swhen\sthe\sinputs\sare\sidentical.\sMaking\sit\ssmart\senough\sis\sa\slot\sof\swork\sfor\sarguably\san\suncommon\scase,\sso\swe\sdon't.\s:-)\n\nThe\smemory\sis\sonly\snot\sreturned\sto\sthe\sOS\sbecause\sTcl\suses\sa\shigh-water-mark\sallocator.\sYou\scan\stell\sit\sis\snot\sa\s"real\sleak"\sbecause\sif\syou\srun\sthe\s"leaky"\scode\sagain\s(including\sthe\s[unset]),\sthe\smemory\srequirements\sremain\sthe\ssame.\n
J login dkf
J mimetype text/plain
J username dkf
K 1804709fffffffffffffffffffffffffffffffff
U dkf
Z c1bac3f59ae5da8f0b9e3c509c73550f