<i>tcl crash on sun using threads</i> status still Open with 4 other changes
by
.
D 2004-11-11T16:52:43
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nAncient\sSol2.6,\shm?\s\n\s\nIf\sthe\sproblem\swould\sbe\sreproducible\son\sother\sversions\s\nand/or\splatforms...\sBut\ssince\syou\sget\sit\sonly\son\sSol\s2.6\s\nI'm\slittle\sbit\sclueless...\s\n\s\nWhat\sI\ssee\sfrom\sthe\strace\sis\sthe\sclassic\smemory\scorruption\s\nissue.\sSome\sC-level\scode\sgarbled\sthe\sTcl_Obj's\swhich\s\s\nare\sbeing\skept\son\sthe\sthread\sprivate\slist.\sAt\sthe\smoment\s\nthe\sthread\sexits,\sits\sprivately\sallocated\sTcl_Obj's\sare\smoved\s\nto\sthe\sthread-wide\srepository\sin\sorder\sto\sreuse\sthem\sagain.\s\nNow,\swhen\sfollowing\sthe\sprivate\slinked\slist\sthere\sis\sa\sproblem\s\n(memory\sreference)\sand\sthis\scores\sthe\sprocess.\sToo\sbad.\s\n\s\nI\sknow\syou\swill\snot\slike\sme\sfor\sthis,\sbut...\sI\swould\skeep\sthe\s\nthreads\sparked\sand\snever\slet\sthem\sexit.\sThis\sway\sa\svery\s\ncomplex\sand\seventually\serror-prone\sgarbage\scollection\s\nof\sresources\sis\savoided.\sObviously,\syou\swould\shave\sto\s\ndesign\ssome\ssort\sof\sthread-caching-and-reusing.\sYou\s\s\nmight\swant\sto\slook\sat\sthe\sthreadpool\simplementation\sfor\s\nsome\sideas.\s\n\s\nOTOH,\sis\sthe\supdate\sto\sSol\s2.8\san\soption?\s\n\s\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 1063988fffffffffffffffffffffffffffffffff
U vasiljevic
Z d2f453c25697a642c4061e5b5dc67330