Skip to content
Tcl Source Code Artifact [d70f0147ba]
Login

Artifact [d70f0147ba]

Artifact d70f0147ba4b7373d9d716a40aca1af1db95280a:

Ticket change [d70f0147ba] - New ticket [731754ffffffffff|731754ffff] <i>inconsistencies in tclThreadAlloc.c, etc</i>. by nobody on 2003-05-03 09:00:35.
D 2003-05-03T09:00:35
J assignee andreas_kupries
J cmimetype text/plain
J comment In\sthe\sCVS\sHEAD\sversion\sof\stclThreadAlloc.c,\snear\s\nline\s#279,\sthe\sfollowing\slines\sof\scode\scan\sbe\sfound:\n\n#ifdef\sWIN32\n\s\s\s\sTlsFree((DWORD)\scachePtr);\n#else\n\s\s\s\sfree(cachePtr);\n#endif\n\nAfter\sseeing\sthis\scode\sand,\sI\sinvestigated\sit\smore\s\ncarefully\sto\ssee\sif\sI\scould\smore\sprecisely\sfigure\sout\s\nit's\simplications.\s\sHere\sare\smy\spreliminary\s\nconclusions:\n\n#1.\sIt\sturns\sout\sthat\scalling\sTlsFree\son\scachePtr\sis\s\nNOT\scorrect.\n\n#2.\sCalling\sfree()\son\sit\sproduces\sa\svery\sstrange\s\ncrash\sin\sPutBlocks\s(null\spointer\sdereference\son\sline\s\n826).\n\n#3.\sIn\san\sattempt\sto\sfix\sthis\sproblem,\sI\smoved\sthe\s\ncall\sto\sTlsFree\sto\stclWinThrd.c,\swhere\sit\sreally\s\nbelongs\sanyhow.\sHowever,\scalling\sTlsFree\son\s\nthe\s"key"\sstatic\svariable\sin\sthis\sfile,\swhich\sis\swhat\s\ncachePtr\sis\sbased\son,\sdoes\snot\sproduce\sgood\s\nresults.\n\nI\sam\snot\ssure\show\sto\sfix\sthis\sproblem\sbecause\sI\s\nbelieve\sit\smay\spoint\sto\sdeeper\sissues\swith\sthe\s\nthreaded\smemory\sallocator.\sAny\shelp\son\sthis\sissue,\s\nand\smore\sgenerally,\smy\snon-TLS\spatch,\swould\sbe\s\ngreatly\sappreciated.\n\nIf\sindeed\sTlsFree\s(or\sit's\snew\snon-TLS\sequivalent)\s\nmust\sbe\scalled\sfrom\stclThreadAlloc.c,\sit\swould\s\nmake\smy\spatch\sa\slot\scleaner\sif\sTclFreeAllocCache\s\ncalled\sinto\sa\swrapper\sfunction\sresiding\sin\s\ntclWinThrd.c,\swhere\sI\scan\suse\smy\snew\snon-TLS\s\nthread\sstorage\ssubsystem\sif\snecessary.\n\nJJM\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title inconsistencies\sin\stclThreadAlloc.c,\setc
J type Bug
K 731754ffffffffffffffffffffffffffffffffff
U nobody
Z 1ca440215ef450466c011cf2d71664ce