Skip to content
Tcl Source Code Artifact [f5e7528133]
Login

Artifact [f5e7528133]

Artifact f5e75281330139668a0afd8d619d68dea0528b79839fd751bc83f5a855f0607a:

Ticket change [f5e7528133] - New ticket [bb9129e46c99f405|bb9129e46c] <i>TCL Memory raise up and didn&#39;t come down for ever</i>. by luguanhui on 2018-06-04 11:37:16.
D 2018-06-04T11:37:16.166
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment \s\s\s\s\sRecentely,I\sbuild\sa\sc++\sprogram\swith\sthe\sTCL\sInterpreter,and\sspawn\s20\sthreads\s.In\seach\sthread,I\swrite\sthe\sflowing\scode\sin\sloop\s:\r\n1.new\sa\sTCL\sInterpreter\r\n2.execute\slots\sof\sTCL\sscript\r\n3.delete\sthe\sinterpreter\s\r\n4.call\sTcl_FinalizeThread\sto\sfree\sthe\smemory\s\s\s\s\s\r\n\s\s\s\sAfter\sexecute\sthe\scode.the\smemory\sis\sraise\sup\sand\sdidn't\scome\sdown\sfor\sever.And\sthe\sI\scheck\sthe\scode\sof\sTCL8.6.8\s,I\sfound\sthat\sTCL\shave\stwo\stype\sof\smemory\smanagement:Thread\sLocal\sStorage\smemory\sand\sshared\smemory.After\sTcl_FinalizeThread\s\sis\scall\s,the\sTLS\smemroy\swill\stransfer\sto\sshared\smemory.and\sshareed\swill\snot\sfree\sfor\sever\s,and\sthis\swill\slead\sto\sTCL\sMemory\sraise\sup\sand\sdidn't\scome\sdown\sfor\sever\r\n\s\s\s\sMy\squestion\sis\s:\r\n1.why\sTCL\sdidn't\sfree\sthe\sshared\smemeory\sfor\sever\r\n2.Does\s\sTCL\sprovide\sany\sway\sto\sfree\sthe\sshare\smemory
J foundin 8.6.8
J is_private 0
J login luguanhui
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter luguanhui
J subsystem -\sNew\sBuiltin\sCommands
J title TCL\sMemory\sraise\sup\sand\sdidn't\scome\sdown\sfor\sever
J type Bug
K bb9129e46c99f405fbc6bbd9261726c05a2ffb2e
U luguanhui
Z 3a1cfaac205578b20a19043fddbbade7