Skip to content
Tcl Source Code Artifact [517c721695]
Login

Artifact [517c721695]

Artifact 517c7216951ebdf1a0f31519cdea24db154ce97d:

Ticket change [517c721695] - Ticket [582256ffffffffff|582256ffff] <i>Releasing Tcl_Obj Allocator</i> status still Open with 4 other changes by dkf on 2006-01-07 16:15:08.
D 2006-01-07T16:15:08
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nThis\scode\spre-dates\sWin64\s:-)\sso\sadapting\sit\sto\suse\ssuitable\ninteger\stypes\sis\sperfectly\sOK\swith\sme.\sThe\smain\sthing\sis\nthat\sthere\sneeds\sto\sbe\sa\sway\sto\smask\soff\sthe\slower\sbits\sto\nget\sthe\saddress\sof\sthe\sstart\sof\sthe\spage\scontaining\sthe\nTcl_Obj\sso\sthat\sthe\sbook-keeping\sstructure\scan\sbe\slocated.\n\nThe\scost\sof\sclosing\sand\sreopening\sany\sfile\sdescriptor\shas\ngot\sto\sbe\sappreciable\sbecause\sit\srequires\stwo\scontext\nswitches\s(plus\sstring\sparsing\sto\sconvert\sthe\sfilename\sinto\sa\ndirectory\sentry,\setc.)\sSome\sUnix\splatforms\sinstead\sdo\spage\nallocation\sthrough\smmap()ing\sa\sspecific\sinvalid\shandle.\sNote\nthat\sthe\scost\sof\sthe\smemset\sis\salmost\sbeside\sthe\spoint\s(it's\nthe\supdate\sto\sthe\spage\stable\swe\sreally\swant!)\sand\sthere's\sno\nguarantee\sthat\sthat's\swhat\sa\smap\sof\s/dev/zero\swould\sbe\ndoing;\staking\sadvantage\sof\sthe\sbus\swidth\sto\swrite\smore\sat\nonce\swould\sbe\spractical\sin\san\sOS\skernel.\n\nIn\sany\scase,\sas\sI\swrote,\sthis\scode\sis\sonly\sknown\sto\swork\son\nSolaris\s8,\swhich\sis\spretty\sold\snowadays.\sIf\syou\swant\sto\nupdate\sit\sto\swork\swith\snewer\ssystems\s(and\sa\snewer\sTcl\stoo,\nincluding\sthe\sthreaded\sTcl_Obj\sallocator)\sthen\sbe\smy\sguest.\n
J login dkf
J mimetype text/plain
J username dkf
K 582256ffffffffffffffffffffffffffffffffff
U dkf
Z 9eb32ac46a3cbc10e7e0ca17165aa5ce