Skip to content
Tcl Source Code Artifact [8c0b69e14f]
Login

Artifact [8c0b69e14f]

Artifact 8c0b69e14f126092e5540cc6e673b680581700e1:

Ticket change [8c0b69e14f] - Ticket [2960042fffffffff|2960042fff] <i>high water mark memory not shared for file I/O needs</i> status still Open with 4 other changes by ferrieux on 2010-03-04 15:53:33.
D 2010-03-04T15:53:33
J icomment \nUpdate:\sDonal\snearly\sconvinced\sme\sthat\sthe\s"statistics"\s(rare/frequent\scase)\sregarding\sfree-able\sblocks\sare\sin\sfavour\sof\strying\sa\sblock-deallocation\sscheme.\s"Nearly",\sbecause\sthe\sproblem\sis\sto\sdo\sit\sefficiently.\sSeveral\sissues:\n\n(1)\ssince\s(as\syou're\sright\sto\spoint\sout)\sthe\sblock-freeing\sshould\snot\swait\sfor\salloc\sfailures\s(mainly\sbecause\salien\scode\slike\sextensions\scould\snot\sbenefit\sfrom\sreclaimable\sspace),\sit\sshould\shappen\sroutinely\sand\shence\sbe\sreasonably\sfast.\sThis\simplies\skeeping\strack\sof\swhich\sblock\sis\sfreeable\sinstead\sof\sdoing\sa\ssweeping\spass\sjust\sin\stime.\sKeeping\strack\simplies,\sfor\seach\sindividual\sTcl_Obj\sallocation/deallocation,\sknowing\sto\swhich\sblock\sthe\sobject\sbelongs,\swhich\sis\snot\scurrently\srecorded,\sand\swould\srequire\sextra\sspace\sin\sthe\sobject\s(or\sa\ssweeping\spass\swith\saddress\scomparisons,\swhich\swe've\sjust\srejected).\n\n(2)\sif\swe\sgo\stowards\sobject\srelocation\sas\syou\ssuggest,\sthings\sget\seven\sworse.\sIndeed,\ssince\sobjects\sare\sreached\sby\ssingle\sindirection\s(not\sdouble,\slike\sold\sMacOS's\srelocatable\s"handles"),\smoving\sany\sof\sthem\simplies\sfinding\sreferences\sto\sit;\sshort\sof\sadding\sa\scomplicated\sback-reference\ssystem,\sthis\sin\sturns\smeans\sa\smark-and-sweep\spass.\sAnd\seven\sif\swe\swild\smagic\sgives\sus\sthe\sback\sreferences\slying\sin\scontainer\sobjects\sor\svars,\swe\sstill\shave\sto\sworry\sabout\sthe\srefs\swhich\sare\sin\sthe\scurrent\sC\sstack\s(eg\sin\s[foreach]),\snot\sto\smove\sthe\srug\sunder\sour\sfeet.\n\nTough.\n\n\s\s\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2960042fffffffffffffffffffffffffffffffff
U ferrieux
Z c3bfc2cba65caeab286765f669c540fb