Skip to content
Tcl Source Code Artifact [5b380e0e8d]
Login

Artifact [5b380e0e8d]

Artifact 5b380e0e8dadc24a033ac199e7d3051fba47f3d4:

Ticket change [5b380e0e8d] - Ticket [886231ffffffffff|886231ffff] <i>Tcl interpreter does not lazy-free objects.</i> status still Open with 4 other changes by msofer on 2004-05-07 22:08:28.
D 2004-05-07T22:08:28
J icomment Logged\sIn:\sYES\s\nuser_id=148712\n\nSome\snotes:\n\n1.\sIt\sis\sprobably\snecessary\sto\sarrange\sthat\sthe\sobjs\sare\nreally\sfreed\sin\sthe\ssame\sorder\sof\sthe\srequests.\sThis\sis\sno\nguarantee\sthat\sthings\swill\swork,\sbut\sis\smore\srobust\sthan\ninverting\sthe\sorder\swrt\sassumptions\sby\sextensions.\sIOW,\swe\nneed\sa\squeueToFree\s(FIFO)\s-\snot\sa\sstackToFree\n\n2.\sEach\sobject\sshould\sbe\sfreed\sfrom\sits\sown\sthread.\sThis\nimplies\sthat\seach\sthread\shas\sto\smaintain\sits\sown\squeue,\seven\nif\susing\sthe\snon-threaded\sallocator\swith\sa\sunified\ntclFreeObjList.\n\n3.\sThe\s"laziest"\sapproach\s(free\sthe\sobject\swhen\sit\sis\sabout\nto\sbe\sreused)\scould\sbe\sdangerous:\san\sextension\smay\sbe\nkeeping\sa\sreference\sto\sthe\sobj\sthat\sis\snot\saccounted\sin\sthe\nrefCount,\srelying\son\sthe\sfreeIntRepProc\sto\sremove\sit.\sIf\swe\ndelay\scalling\sfIRP\swhile\sthe\sobj\sis\sin\sfact\sdead\sfor\stcl,\nthe\sextension\sis\snot\snotified\sof\sthis\sdeath\sand\scould\sreuse\nit\s-\snot\sgood.\n
J login msofer
J mimetype text/plain
J username msofer
K 886231ffffffffffffffffffffffffffffffffff
U msofer
Z aefe05c57ede533bded95a298e929b65