<i>Win32 non-TLS thread storage patch...</i> status still Open with 4 other changes
by
.
D 2003-05-11T08:42:35
J icomment Logged\sIn:\sYES\s\nuser_id=113501\n\nLet\sme\saddress\syour\scomments\sone\sby\sone:\n\n(1)\sI\sthink\syou\sare\stotally\sright\sabout\sthis.\sIt\sshould\sbe\sa\s\nvariable\sthat\sis\sdefaulted\sto\sa\sprime\snumber.\n\n(2)\sI\sbelieve\sthey\sshould\sgo\sinto\stclInt.decls,\sit\sslipped\s\nmy\smind\sat\sthe\stime.\n\n(3)\sThe\sfunctions\sin\squestion\sare\smost\slikely\sthe\salloc\s\ncache\sfunctions,\swhich\sstrangely\snever\shad\sany\s\nprologue\scomments.\sI\sbelieve\sI\sadded\sone\sfunction\sto\s\nthis\sset\sof\sfunctions\sand\sI\sfigured\s"why\scomment?"\sif\s\nthere\swere\sno\sother\scomments\sregarding\sthese\s\nparticular\sfunctions.\s\sAll\sthe\sother\sfunctions\sI\sadded\s\nshould\shave\sprologue\scomments.\n\n(4)\sI\sagree\sabout\sthis\stoo.\s\sHowever,\ssome\swork\swill\s\nneed\sto\sbe\sdone\sto\smake\sthis\scross-platform.\s\sI\shave\s\nproposed\sto\sJeffH\sthat\swe\screate\sa\snew\sfile\sfor\sthis\s\nsubsystem\sand\scall\sit\s"generic/tclThreadStorage.c".\n\n(5)\sThe\sdifference\sbetween\sthese\sflags\sis\svery\simportant,\s\nactually.\s\sThe\sTCL_NO_TLS\sflag\sprevents\sTLS\sfrom\sbeing\s\nused\sfor\s"high\slevel"\sthread\slocal\sstorage\soperations\s\n(TclpThreadDataKeyInit/TclpThreadDataKeyGet/TclpThre\nadDataKeySet).\s\sThe\sTCL_THREAD_ALLOC_NO_TLS\s\nforces\sthe\sthreaded\smemory\sallocator\s(which\sis\sMUCH\s\nmore\slow\slevel)\sto\sNOT\suse\sTLS.\s\sThese\sflags\sshould\s\ndefinitely\sstay\sseparate.\n\nDid\syou\snotice\sthat\sI\smade\ssome\schanges\sto\stclHash.c\s\n(the\sability\sto\suse\sTclpSysAlloc/TclpSysFree\sinstead\sof\s\nckalloc/ckfree\sfor\sthe\snon-entry\sparts\sof\sthe\stable\sthat\s\nneed\sto\sbe\sdynamically\sallocated)\sand\stcl.h\s(a\snew\shash\s\nkey\stype\sflag)?\s\sIt\sis\smy\shope\sthat\sthese\schanges\swill\s\nNOT\srequire\sa\sTIP,\sbecause\swithout\sthem,\sthe\sthreaded\s\nmemory\sallocator\sCANNOT\suse\shash\stables\s(due\sto\s\ncircular\sdependency\sissues).\n\nIn\sconclusion,\sI\sdon't\sthink\sthis\spatch\sshould\sbe\s\ncommitted\sas\sis.\s\sI'm\sstill\sworking\son\ssome\sideas\sand\sI\s\nthink\sthat\swe\sshould\smake\sthe\s"new"\scode\scross-\nplatform.\sOh,\sand\sI\sthink\swe\sshould\sleave\sin\ssupport\sfor\s\nthe\s"legacy"\sthread\slocal\sstorage\sstuff\sthat's\sin\sthere\s\nnow.\n\n
J login mistachkin
J mimetype text/plain
J username mistachkin
K 731356ffffffffffffffffffffffffffffffffff
U mistachkin
Z b26d78bdb9d7f3baafbf0e855b6755bc